]> granicus.if.org Git - clang/commit
Move __vector long deprecation checking into DeclSpec::Finish
authorHal Finkel <hfinkel@anl.gov>
Sun, 24 Aug 2014 04:50:19 +0000 (04:50 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 24 Aug 2014 04:50:19 +0000 (04:50 +0000)
commita558d5823a600af0da42b2d4b14bd9d2e24f623a
tree5469b42ce9b759bf4a61303315e9ac9372561b3e
parent041b099ee1e18ca85b0b07d66d3488092c1f4b91
Move __vector long deprecation checking into DeclSpec::Finish

__vector long is deprecated, but __vector long long is not. As a result, we
cannot check for __vector long (to issue the deprecation warning) as we parse
the type because we need to know how many 'long's we have first.
DeclSpec::Finish seems like a more-appropriate place to perform the check
(which places it with several other similar Altivec vector checks).

Fixes PR20720.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216342 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/DeclSpec.cpp
test/Parser/altivec.c
test/Parser/cxx-altivec.cpp