Add a missing check for getting a NULL oso module back from GetModuleByCompUnitInfo.

llvm-svn: 176918
This commit is contained in:
Jim Ingham 2013-03-13 01:34:14 +00:00
parent 96ca182904
commit 199e4f7dc5
1 changed files with 3 additions and 0 deletions

View File

@ -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));