1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Add an assert here in case parsing gave us a NULL compile unit.

llvm-svn: 162498
This commit is contained in:
Eric Christopher 2012-08-23 23:21:11 +00:00
parent 5e0b3cf4a6
commit becf1e9673

View File

@ -94,7 +94,9 @@ void DWARFCompileUnit::dump(raw_ostream &OS) {
<< " (next CU at " << format("0x%08x", getNextCompileUnitOffset())
<< ")\n";
getCompileUnitDIE(false)->dump(OS, this, -1U);
const DWARFDebugInfoEntryMinimal *CU = getCompileUnitDIE(false);
assert(CU && "Null Compile Unit?");
CU->dump(OS, this, -1U);
}
const char *DWARFCompileUnit::getCompilationDir() {