summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Marton <martongabesz@gmail.com>2018-11-26 17:09:50 +0000
committerGabor Marton <martongabesz@gmail.com>2018-11-26 17:09:50 +0000
commitb795ed93816e32edbcf11722f6dbe2e9aa4d77e2 (patch)
tree07fef54e249211d93b2d91974b56d74f34dbb3ec
parente8ccb8238d1b817848f62fc00b370076c08ae373 (diff)
downloadbcm5719-llvm-b795ed93816e32edbcf11722f6dbe2e9aa4d77e2.tar.gz
bcm5719-llvm-b795ed93816e32edbcf11722f6dbe2e9aa4d77e2.zip
[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
-rw-r--r--lldb/source/Symbol/ClangASTImporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Symbol/ClangASTImporter.cpp b/lldb/source/Symbol/ClangASTImporter.cpp
index ea3b141c9e7..b6850785bd2 100644
--- a/lldb/source/Symbol/ClangASTImporter.cpp
+++ b/lldb/source/Symbol/ClangASTImporter.cpp
@@ -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(
OpenPOWER on IntegriCloud