Skip to content

Commit c6f292e

Browse files
Apply suggestions from code review
Co-authored-by: Michael Buch <[email protected]>
1 parent 34c2dd9 commit c6f292e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/Plugins/Language/Swift/SwiftLanguage.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,14 +1752,14 @@ bool SwiftLanguage::GetFunctionDisplayName(
17521752
std::string SwiftLanguage::GetFunctionName(const SymbolContext &sc,
17531753
const ExecutionContext *exe_ctx) {
17541754
if (!sc.function)
1755-
return "";
1755+
return {};
17561756
if (sc.function->GetLanguage() != eLanguageTypeSwift)
1757-
return "";
1757+
return {};
17581758
std::string name = SwiftLanguageRuntime::DemangleSymbolAsString(
17591759
sc.function->GetMangled().GetMangledName().GetStringRef(),
17601760
SwiftLanguageRuntime::eSimplified, &sc, exe_ctx);
17611761
if (name.empty())
1762-
return "";
1762+
return {};
17631763
const char *cstr = name.data();
17641764
const char *open_paren = strchr(cstr, '(');
17651765
const char *generic = strchr(cstr, '<');

0 commit comments

Comments
 (0)