diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-12-29 05:17:46 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-12-29 05:17:46 +0000 |
commit | be4c437f8a478e412c3da7df2c066f125f0a6ce6 (patch) | |
tree | 7015aeaaf7ebad18dd425b086bffc908d8aa055d /clang/lib/Sema/SemaDecl.cpp | |
parent | c63fa612e46ec56776474580c72c7fb761e8777d (diff) | |
download | bcm5719-llvm-be4c437f8a478e412c3da7df2c066f125f0a6ce6.tar.gz bcm5719-llvm-be4c437f8a478e412c3da7df2c066f125f0a6ce6.zip |
Sema: Don't crash when solitary :: token appears before { in struct def
hasDeclaratorForAnonDecl, getDeclaratorForAnonDecl and
getTypedefNameForAnonDecl are expected to handle the case where
NamedDeclOrQualifier holds the wrong type or nothing at all.
llvm-svn: 224912
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 834f157e04f..7264d82774c 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -11790,7 +11790,7 @@ CreateNewDecl: // CheckMemberSpecialization, below. if (!isExplicitSpecialization && (TUK == TUK_Definition || TUK == TUK_Declaration) && - diagnoseQualifiedDeclaration(SS, DC, OrigName, NameLoc)) + diagnoseQualifiedDeclaration(SS, DC, OrigName, Loc)) Invalid = true; New->setQualifierInfo(SS.getWithLocInContext(Context)); |