diff options
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index d6ed6f84207..ac92a632b58 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -161,8 +161,8 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) { DataExtractor CUIndexData(getCUIndexSection(), isLittleEndian(), savedAddressByteSize); DWARFUnitIndex CUIndex; - CUIndex.parse(CUIndexData); - CUIndex.dump(OS); + if (CUIndex.parse(CUIndexData)) + CUIndex.dump(OS); } if (DumpType == DIDT_All || DumpType == DIDT_TUIndex) { @@ -170,8 +170,8 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) { DataExtractor TUIndexData(getTUIndexSection(), isLittleEndian(), savedAddressByteSize); DWARFUnitIndex TUIndex; - TUIndex.parse(TUIndexData); - TUIndex.dump(OS); + if (TUIndex.parse(TUIndexData)) + TUIndex.dump(OS); } if (DumpType == DIDT_All || DumpType == DIDT_LineDwo) { |