Skip to content

Commit 18d23ce

Browse files
committed
[lldb] Check if C++ interop is enabled on CU instead of whole module
Checking if C++ interop is enabled can be extremely slow if the project is big enough. We have changed this to checking only the compile unit instead, but one usage of the old API slipped by. rdar://147009063
1 parent 07aa074 commit 18d23ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2792,7 +2792,7 @@ SwiftASTContext::CreateInstance(const SymbolContext &sc,
27922792
swift_ast_sp->m_module = module_sp.get();
27932793
auto &lang_opts = swift_ast_sp->GetLanguageOptions();
27942794
lang_opts.EnableAccessControl = false;
2795-
lang_opts.EnableCXXInterop = module_sp->IsSwiftCxxInteropEnabled();
2795+
lang_opts.EnableCXXInterop = ShouldEnableCXXInterop(cu);
27962796
if (module_sp->IsEmbeddedSwift())
27972797
lang_opts.enableFeature(swift::Feature::Embedded);
27982798
}

0 commit comments

Comments
 (0)