diff options
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Symbol/ClangASTImporter.cpp')
| -rw-r--r-- | contrib/llvm/tools/lldb/source/Symbol/ClangASTImporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm/tools/lldb/source/Symbol/ClangASTImporter.cpp b/contrib/llvm/tools/lldb/source/Symbol/ClangASTImporter.cpp index ea3b141c9e74..621441449c20 100644 --- a/contrib/llvm/tools/lldb/source/Symbol/ClangASTImporter.cpp +++ b/contrib/llvm/tools/lldb/source/Symbol/ClangASTImporter.cpp @@ -1002,7 +1002,7 @@ clang::Decl *ClangASTImporter::Minion::Imported(clang::Decl *from, if (isa<TagDecl>(to) || isa<ObjCInterfaceDecl>(to)) { RecordDecl *from_record_decl = dyn_cast<RecordDecl>(from); if (from_record_decl == nullptr || - from_record_decl->isInjectedClassName() == false) { + !from_record_decl->isInjectedClassName()) { NamedDecl *to_named_decl = dyn_cast<NamedDecl>(to); if (!m_decls_already_deported->count(to_named_decl)) @@ -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( |
