diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp index 1eac372d79ec..33aa2dc7a3a1 100644 --- a/lldb/source/DataFormatters/FormatManager.cpp +++ b/lldb/source/DataFormatters/FormatManager.cpp @@ -581,11 +581,6 @@ ConstString FormatManager::GetTypeForCache(ValueObject &valobj, std::vector FormatManager::GetCandidateLanguages(ValueObject &valobj) { lldb::LanguageType lang_type = valobj.GetObjectRuntimeLanguage(); - return GetCandidateLanguages(lang_type); -} - -std::vector -FormatManager::GetCandidateLanguages(lldb::LanguageType lang_type) { switch (lang_type) { case lldb::eLanguageTypeC: case lldb::eLanguageTypeC89: @@ -599,6 +594,7 @@ FormatManager::GetCandidateLanguages(lldb::LanguageType lang_type) { default: return {lang_type}; } + llvm_unreachable("Fully covered switch"); } LanguageCategory *