X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FDebugInfo%2FDWARF%2FDWARFTypeUnit.cpp;h=766e8ac16f0ccdfb41b639cd457dd09acf2c3fb4;hb=7ede9649c143982b17b42db941b15592257a6ffb;hp=65c7bff0990de70e7050671e6665988430e1e83e;hpb=50418a0ac4926f481c6bc27618bbb1c591842513;p=oota-llvm.git diff --git a/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp b/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp index 65c7bff0990..766e8ac16f0 100644 --- a/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp +++ b/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp @@ -33,7 +33,8 @@ void DWARFTypeUnit::dump(raw_ostream &OS) { << " (next unit at " << format("0x%08x", getNextUnitOffset()) << ")\n"; - const DWARFDebugInfoEntryMinimal *CU = getCompileUnitDIE(false); - assert(CU && "Null Compile Unit?"); - CU->dump(OS, this, -1U); + if (const DWARFDebugInfoEntryMinimal *TU = getUnitDIE(false)) + TU->dump(OS, this, -1U); + else + OS << "\n\n"; }