Skip to content

Commit 517274e

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 (cherry picked from commit e1099ae)
1 parent 08670c0 commit 517274e

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
@@ -2789,7 +2789,7 @@ SwiftASTContext::CreateInstance(const SymbolContext &sc,
27892789
swift_ast_sp->m_module = module_sp.get();
27902790
auto &lang_opts = swift_ast_sp->GetLanguageOptions();
27912791
lang_opts.EnableAccessControl = false;
2792-
lang_opts.EnableCXXInterop = module_sp->IsSwiftCxxInteropEnabled();
2792+
lang_opts.EnableCXXInterop = ShouldEnableCXXInterop(cu);
27932793
if (module_sp->IsEmbeddedSwift())
27942794
lang_opts.enableFeature(swift::Feature::Embedded);
27952795
}

0 commit comments

Comments
 (0)