summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index 68d6b6aef7b..bbb04325819 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -120,7 +120,7 @@ DIE *DIE::getCompileUnit() const{
return p;
p = p->getParent();
}
- return NULL;
+ llvm_unreachable("We should not have orphaned DIEs.");
}
#ifndef NDEBUG
OpenPOWER on IntegriCloud