File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lldb/source/Plugins/Language/Swift Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1754,14 +1754,14 @@ bool SwiftLanguage::GetFunctionDisplayName(
1754
1754
std::string SwiftLanguage::GetFunctionName (const SymbolContext &sc,
1755
1755
const ExecutionContext *exe_ctx) {
1756
1756
if (!sc.function )
1757
- return " " ;
1757
+ return {} ;
1758
1758
if (sc.function ->GetLanguage () != eLanguageTypeSwift)
1759
- return " " ;
1759
+ return {} ;
1760
1760
std::string name = SwiftLanguageRuntime::DemangleSymbolAsString (
1761
1761
sc.function ->GetMangled ().GetMangledName ().GetStringRef (),
1762
1762
SwiftLanguageRuntime::eSimplified, &sc, exe_ctx);
1763
1763
if (name.empty ())
1764
- return " " ;
1764
+ return {} ;
1765
1765
const char *cstr = name.data ();
1766
1766
const char *open_paren = strchr (cstr, ' (' );
1767
1767
const char *generic = strchr (cstr, ' <' );
You can’t perform that action at this time.
0 commit comments