diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp index 3446db0b1214..4f35d8ac51f0 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp @@ -1231,11 +1231,6 @@ void TypeSystemClang::SetOwningModule(clang::Decl *decl, decl->setFromASTFile(); decl->setOwningModuleID(owning_module.GetValue()); decl->setModuleOwnershipKind(clang::Decl::ModuleOwnershipKind::Visible); - if (auto *decl_ctx = llvm::dyn_cast(decl)) { - decl_ctx->setHasExternalVisibleStorage(); - if (auto *ns = llvm::dyn_cast(decl_ctx)) - ns->getPrimaryContext()->setMustBuildLookupTable(); - } } OptionalClangModuleID