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
lldb/source/Plugins/SymbolFile/DWARF
|
@ -845,6 +845,9 @@ SymbolFileDWARF::DebugInfo() const
|
||||||
DWARFCompileUnit*
|
DWARFCompileUnit*
|
||||||
SymbolFileDWARF::GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit)
|
SymbolFileDWARF::GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit)
|
||||||
{
|
{
|
||||||
|
if (!comp_unit)
|
||||||
|
return nullptr;
|
||||||
|
|
||||||
DWARFDebugInfo* info = DebugInfo();
|
DWARFDebugInfo* info = DebugInfo();
|
||||||
if (info)
|
if (info)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue