summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-03-13 18:33:41 +0000
committerManman Ren <mren@apple.com>2013-03-13 18:33:41 +0000
commit723956fe1a819a70341ef576b9a08324df1e248a (patch)
treeb5387c2d88ffdd5816e106244638034c3c252e10 /llvm/lib/CodeGen/AsmPrinter/DIE.cpp
parente4ca515ae1c8cfabe101f20406b56f27dd2f381d (diff)
downloadbcm5719-llvm-723956fe1a819a70341ef576b9a08324df1e248a.tar.gz
bcm5719-llvm-723956fe1a819a70341ef576b9a08324df1e248a.zip
No functionality change. Use unreachable in getCompileUnit.
llvm-svn: 176962
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-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