File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
lldb/source/Plugins/LanguageRuntime/Swift Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -886,12 +886,16 @@ bool SwiftLanguageRuntimeImpl::AddModuleToReflectionContext(
886
886
if (obj_file->GetType () != ObjectFile::eTypeJIT)
887
887
LLDB_LOG (GetLog (LLDBLog::Types),
888
888
" {0}: failed to get start address for \" {1}\" ." , __FUNCTION__,
889
- module_sp->GetObjectName ());
889
+ module_sp->GetObjectName ()
890
+ ? module_sp->GetObjectName ()
891
+ : obj_file->GetFileSpec ().GetFilename ());
890
892
return false ;
891
893
}
892
894
bool found = HasReflectionInfo (obj_file);
893
895
LLDB_LOG (GetLog (LLDBLog::Types), " {0} reflection metadata in \" {1}\" " ,
894
- found ? " Adding" : " No" , module_sp->GetObjectName ());
896
+ found ? " Adding" : " No" ,
897
+ module_sp->GetObjectName () ? module_sp->GetObjectName ()
898
+ : obj_file->GetFileSpec ().GetFilename ());
895
899
if (!found)
896
900
return true ;
897
901
You can’t perform that action at this time.
0 commit comments