Delete cargo-cult code that doesn't affect the testsuite.

This commit is contained in:
Adrian Prantl 2020-04-24 11:11:23 -07:00
parent 7f48246175
commit 304ba5d4c6
1 changed files with 0 additions and 5 deletions

View File

@ -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<clang::DeclContext>(decl)) {
decl_ctx->setHasExternalVisibleStorage();
if (auto *ns = llvm::dyn_cast<NamespaceDecl>(decl_ctx))
ns->getPrimaryContext()->setMustBuildLookupTable();
}
}
OptionalClangModuleID