[ASTImporter] Set MustBuildLookupTable on PrimaryContext

Summary: SetMustBuildLookupTable() must always be called on a primary context.

Reviewers: labath, shafik, a.sidorin

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411

Differential Revision: https://reviews.llvm.org/D54863

llvm-svn: 347575
This commit is contained in:
Gabor Marton 2018-11-26 17:09:50 +00:00
parent e8ccb8238d
commit b795ed9381
1 changed files with 1 additions and 1 deletions

View File

@ -1050,7 +1050,7 @@ clang::Decl *ClangASTImporter::Minion::Imported(clang::Decl *from,
TagDecl *to_tag_decl = dyn_cast<TagDecl>(to);
to_tag_decl->setHasExternalLexicalStorage();
to_tag_decl->setMustBuildLookupTable();
to_tag_decl->getPrimaryContext()->setMustBuildLookupTable();
if (log)
log->Printf(