forked from OSchip/llvm-project
[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:
parent
e8ccb8238d
commit
b795ed9381
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue