Pull in r185446 from clang trunk:
Fix to PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout. Reported by: glebius
This commit is contained in:
parent
35542a4c33
commit
c4c2416223
@ -10296,7 +10296,8 @@ void Sema::ActOnTagFinishDefinition(Scope *S, Decl *TagD,
|
||||
Tag->setTopLevelDeclInObjCContainer();
|
||||
|
||||
// Notify the consumer that we've defined a tag.
|
||||
Consumer.HandleTagDeclDefinition(Tag);
|
||||
if (!Tag->isInvalidDecl())
|
||||
Consumer.HandleTagDeclDefinition(Tag);
|
||||
}
|
||||
|
||||
void Sema::ActOnObjCContainerFinishDefinition() {
|
||||
|
Loading…
Reference in New Issue
Block a user