diff options
Diffstat (limited to 'lib/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | lib/Parse/ParseDeclCXX.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Parse/ParseDeclCXX.cpp b/lib/Parse/ParseDeclCXX.cpp index 21c7d6f0fe..7d03c59113 100644 --- a/lib/Parse/ParseDeclCXX.cpp +++ b/lib/Parse/ParseDeclCXX.cpp @@ -551,9 +551,9 @@ Parser::DeclTy *Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS) { /// void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc, unsigned TagType, DeclTy *TagDecl) { - assert(TagType == DeclSpec::TST_struct || + assert((TagType == DeclSpec::TST_struct || TagType == DeclSpec::TST_union || - TagType == DeclSpec::TST_class && "Invalid TagType!"); + TagType == DeclSpec::TST_class) && "Invalid TagType!"); SourceLocation LBraceLoc = ConsumeBrace(); @@ -626,8 +626,8 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc, // For a local class of inline method, pop the LexedMethodsForTopClass that // was previously pushed. - assert(CurScope->isInCXXInlineMethodScope() || - TopClassStacks.size() == 1 && + assert((CurScope->isInCXXInlineMethodScope() || + TopClassStacks.size() == 1) && "MethodLexers not getting popped properly!"); if (CurScope->isInCXXInlineMethodScope()) PopTopClassStack(); |