diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 731aa6688d275..ed17078190763 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -661,7 +661,11 @@ Module::LookupInfo::LookupInfo(ConstString name, if (language != eLanguageTypeUnknown) lang_types.push_back(language); else - lang_types = {eLanguageTypeObjC, eLanguageTypeC_plus_plus}; + lang_types = {eLanguageTypeObjC, eLanguageTypeC_plus_plus, +#ifdef LLDB_ENABLE_SWIFT + eLanguageTypeSwift +#endif + }; for (LanguageType lang_type : lang_types) { if (Language *lang = Language::FindPlugin(lang_type)) diff --git a/lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py b/lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py index de901b6222f25..3387454914887 100644 --- a/lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py +++ b/lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py @@ -13,12 +13,10 @@ Tests that we can break on a partial name of a Swift function Effectively tests our chopper of Swift demangled names """ -import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.decorators import * import lldbsuite.test.lldbutil as lldbutil -@skipIf(bugnumber = "rdar://159531198") class SwiftPartialBreakTest(TestBase): @swiftTest def test_swift_partial_break(self):