File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ class Language : public PluginInterface {
270
270
return mangled.GetMangledName ();
271
271
}
272
272
273
- virtual ConstString GetDisplayDemangledName (Mangled mangled) const {
273
+ virtual ConstString GetDisplayDemangledName (const Mangled & mangled) const {
274
274
return mangled.GetDemangledName ();
275
275
}
276
276
Original file line number Diff line number Diff line change @@ -338,7 +338,8 @@ ConstString Mangled::GetDisplayDemangledName(
338
338
#endif // LLDB_ENABLE_SWIFT
339
339
// END SWIFT
340
340
if (Language *lang = Language::FindPlugin (GuessLanguage ()))
341
- return lang->GetDisplayDemangledName (*this );
341
+ if (ConstString display_name = lang->GetDisplayDemangledName (*this ))
342
+ return display_name;
342
343
return GetDemangledName ();
343
344
}
344
345
You can’t perform that action at this time.
0 commit comments