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/DWARFLocationList.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/DWARFLocationList.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp index ef53eb55121..ff65d08e5fc 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp @@ -34,11 +34,12 @@ DWARFLocationList::Dump(Stream &s, const DWARFCompileUnit* cu, const DataExtract s.PutCString("\n "); s.Indent(); - s.AddressRange (start_addr + base_addr, - end_addr + base_addr, - cu->GetAddressByteSize(), - NULL, - ": "); + if (cu) + s.AddressRange (start_addr + base_addr, + end_addr + base_addr, + cu->GetAddressByteSize(), + NULL, + ": "); uint32_t loc_length = debug_loc_data.GetU16(&offset); DataExtractor locationData(debug_loc_data, offset, loc_length); |

