forked from OSchip/llvm-project
Check for null compile unit so we don't crash.
llvm-svn: 246887
This commit is contained in:
parent
1b348a68e5
commit
ea4a5bb8bb
|
@ -845,6 +845,9 @@ SymbolFileDWARF::DebugInfo() const
|
|||
DWARFCompileUnit*
|
||||
SymbolFileDWARF::GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit)
|
||||
{
|
||||
if (!comp_unit)
|
||||
return nullptr;
|
||||
|
||||
DWARFDebugInfo* info = DebugInfo();
|
||||
if (info)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue