Skip to content

Commit 644ef58

Browse files
committed
Print the "no plugin" warning only when there is no plugin
... and not when the typesystem failed to initialize. rdar://72562341 Differential Revision: https://reviews.llvm.org/D95992
1 parent e10b73f commit 644ef58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/Target/Process.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -5684,9 +5684,9 @@ void Process::PrintWarningUnsupportedLanguage(const SymbolContext &sc) {
56845684
LanguageType language = sc.GetLanguage();
56855685
if (language == eLanguageTypeUnknown)
56865686
return;
5687-
auto type_system_or_err = sc.module_sp->GetTypeSystemForLanguage(language);
5688-
if (auto err = type_system_or_err.takeError()) {
5689-
llvm::consumeError(std::move(err));
5687+
LanguageSet plugins =
5688+
PluginManager::GetAllTypeSystemSupportedLanguagesForTypes();
5689+
if (!plugins[language]) {
56905690
PrintWarning(Process::Warnings::eWarningsUnsupportedLanguage,
56915691
sc.module_sp.get(),
56925692
"This version of LLDB has no plugin for the %s language. "

0 commit comments

Comments
 (0)