diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-27 01:22:48 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-27 01:22:48 +0000 |
commit | 0ec213d4c9a6141c881c4df3ae9dd667a18f95da (patch) | |
tree | 70c643320a466f115657e5e697fa77339d840dc8 /lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | c78b67d6c5a56d39765a648b717b3fff4712285b (diff) |
PR19252: Fix crash if alignas is used with an auto-typed variable. Don't check
the type of the variable until it's known.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiateDecl.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 0982f44257..8766c887f8 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -3593,9 +3593,6 @@ void Sema::BuildVariableInstantiation( InstantiateAttrs(TemplateArgs, OldVar, NewVar, LateAttrs, StartingScope); - if (NewVar->hasAttrs()) - CheckAlignasUnderalignment(NewVar); - LookupResult Previous( *this, NewVar->getDeclName(), NewVar->getLocation(), NewVar->isLocalExternDecl() ? Sema::LookupRedeclarationWithLinkage |