Skip to content

Commit 1371c9e

Browse files
Apply suggestions from code review
Co-authored-by: Michael Buch <[email protected]>
1 parent f581f7a commit 1371c9e

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
@@ -1754,14 +1754,14 @@ bool SwiftLanguage::GetFunctionDisplayName(
17541754
std::string SwiftLanguage::GetFunctionName(const SymbolContext &sc,
17551755
const ExecutionContext *exe_ctx) {
17561756
if (!sc.function)
1757-
return "";
1757+
return {};
17581758
if (sc.function->GetLanguage() != eLanguageTypeSwift)
1759-
return "";
1759+
return {};
17601760
std::string name = SwiftLanguageRuntime::DemangleSymbolAsString(
17611761
sc.function->GetMangled().GetMangledName().GetStringRef(),
17621762
SwiftLanguageRuntime::eSimplified, &sc, exe_ctx);
17631763
if (name.empty())
1764-
return "";
1764+
return {};
17651765
const char *cstr = name.data();
17661766
const char *open_paren = strchr(cstr, '(');
17671767
const char *generic = strchr(cstr, '<');

0 commit comments

Comments
 (0)