[Lldb-commits] [lldb] r347575 - [ASTImporter] Set MustBuildLookupTable on PrimaryContext

Gabor Marton via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 26 09:09:50 PST 2018


Author: martong
Date: Mon Nov 26 09:09:50 2018
New Revision: 347575

URL: http://llvm.org/viewvc/llvm-project?rev=347575&view=rev
Log:
[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

Modified:
    lldb/trunk/source/Symbol/ClangASTImporter.cpp

Modified: lldb/trunk/source/Symbol/ClangASTImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTImporter.cpp?rev=347575&r1=347574&r2=347575&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTImporter.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTImporter.cpp Mon Nov 26 09:09:50 2018
@@ -1050,7 +1050,7 @@ clang::Decl *ClangASTImporter::Minion::I
     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(




More information about the lldb-commits mailing list