File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
lldb/source/Plugins/Language/Swift Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -125,19 +125,15 @@ bool lldb_private::formatters::swift::SwiftURL_SummaryProvider(
125
125
126
126
std::string base;
127
127
ValueObjectSP base_url_sp (valobj.GetChildAtNamePath ({g__baseURL}));
128
- if (base_url_sp)
129
- if (ValueObjectSP non_synth_valobj = base_url_sp->GetNonSyntheticValue ()) {
130
- const char *value = non_synth_valobj->GetValueAsCString ();
131
- if (value && llvm::StringRef (value) != " none" )
132
- if (!base_url_sp->GetSummaryAsCString (base, options))
133
- return false ;
134
- }
128
+ if (base_url_sp && base_url_sp->HasChildren ())
129
+ if (!base_url_sp->GetSummaryAsCString (base, options))
130
+ return false ;
135
131
136
132
std::string summary;
137
133
if (!rel_str_sp->GetSummaryAsCString (summary, options))
138
134
return false ;
139
135
140
- // This format matches the implementastion of _SwiftURL.description.
136
+ // This format matches the implementation of _SwiftURL.description.
141
137
stream << summary;
142
138
if (!base.empty ())
143
139
stream << " -- " << base;
You can’t perform that action at this time.
0 commit comments