diff options
author | Jim Ingham <jingham@apple.com> | 2012-10-12 17:34:26 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-10-12 17:34:26 +0000 |
commit | 28eb57114d05dd100d9b4a56e0a00be85cd09e3b (patch) | |
tree | 61467023c9112981c8ff375d429b244c7b95c475 /lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp | |
parent | e87f41f43e5d5dafa5794a1f78c849a774ea989a (diff) | |
download | bcm5719-llvm-28eb57114d05dd100d9b4a56e0a00be85cd09e3b.tar.gz bcm5719-llvm-28eb57114d05dd100d9b4a56e0a00be85cd09e3b.zip |
Bunch of cleanups for warnings found by the llvm static analyzer.
llvm-svn: 165808
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp index 60f349c4005..1d0814c7940 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp @@ -386,7 +386,9 @@ DWARFCompileUnit::BuildAddressRangeTable (SymbolFileDWARF* dwarf2Data, // down. const bool clear_dies = ExtractDIEsIfNeeded (false) > 1; - DIE()->BuildAddressRangeTable(dwarf2Data, this, debug_aranges); + const DWARFDebugInfoEntry* die = DIE(); + if (die) + die->BuildAddressRangeTable(dwarf2Data, this, debug_aranges); // Keep memory down by clearing DIEs if this generate function // caused them to be parsed @@ -410,7 +412,9 @@ DWARFCompileUnit::GetFunctionAranges () "DWARFCompileUnit::GetFunctionAranges() for compile unit at .debug_info[0x%8.8x]", GetOffset()); } - DIE()->BuildFunctionAddressRangeTable (m_dwarf2Data, this, m_func_aranges_ap.get()); + const DWARFDebugInfoEntry* die = DIE(); + if (die) + die->BuildFunctionAddressRangeTable (m_dwarf2Data, this, m_func_aranges_ap.get()); const bool minimize = false; m_func_aranges_ap->Sort(minimize); } |