projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbbd5b1
)
Add an assert here in case parsing gave us a NULL compile unit.
author
Eric Christopher
<echristo@apple.com>
Thu, 23 Aug 2012 23:21:11 +0000
(23:21 +0000)
committer
Eric Christopher
<echristo@apple.com>
Thu, 23 Aug 2012 23:21:11 +0000
(23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162498
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/DebugInfo/DWARFCompileUnit.cpp
patch
|
blob
|
history
diff --git
a/lib/DebugInfo/DWARFCompileUnit.cpp
b/lib/DebugInfo/DWARFCompileUnit.cpp
index 4c98cb8a7f912fd127fdce5d0271a284cb196119..98dccac00a64e40575062800cbaf4e37f7c50be8 100644
(file)
--- a/
lib/DebugInfo/DWARFCompileUnit.cpp
+++ b/
lib/DebugInfo/DWARFCompileUnit.cpp
@@
-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() {