mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:18:14 +08:00
Add a missing check for getting a NULL oso module back from GetModuleByCompUnitInfo.
llvm-svn: 176918
This commit is contained in:
@@ -50,6 +50,9 @@ SymbolFileDWARFDebugMap::CompileUnitInfo::GetFileRangeMap(SymbolFileDWARFDebugMa
|
||||
file_range_map_valid = true;
|
||||
|
||||
Module *oso_module = exe_symfile->GetModuleByCompUnitInfo (this);
|
||||
if (!oso_module)
|
||||
return file_range_map;
|
||||
|
||||
ObjectFile *oso_objfile = oso_module->GetObjectFile();
|
||||
|
||||
LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_MAP));
|
||||
|
||||
Reference in New Issue
Block a user