Don't dereference the oso_dwarf without checking for NULL.

llvm-svn: 148005
This commit is contained in:
Jim Ingham 2012-01-12 01:45:53 +00:00
parent 58c7569854
commit c07fe69850
1 changed files with 2 additions and 2 deletions

View File

@ -651,7 +651,7 @@ SymbolFileDWARFDebugMap::ResolveSymbolContext (const FileSpec& file_spec, uint32
if (FileSpec::Compare (file_spec, so_file_spec, false) == 0)
{
SymbolFileDWARF *oso_dwarf = GetSymbolFileByOSOIndex (i);
if (oso_dwarf)
oso_dwarf->ResolveSymbolContext(file_spec, line, check_inlines, resolve_scope, sc_list);
}
}