summaryrefslogtreecommitdiff
path: root/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
commitb1e052aa1b9e52d12831f86a1ee0fcf0c4030f1b (patch)
tree5502a32ccceba684797c59f49448712fcdb66caf /lib/CodeGen/AsmPrinter/DIE.cpp
parente8a3cc68782cc5d43d7b8e24c4afa94448905349 (diff)
downloadllvm-b1e052aa1b9e52d12831f86a1ee0fcf0c4030f1b.tar.gz
llvm-b1e052aa1b9e52d12831f86a1ee0fcf0c4030f1b.tar.bz2
llvm-b1e052aa1b9e52d12831f86a1ee0fcf0c4030f1b.tar.xz
No functionality change. Use unreachable in getCompileUnit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp
index 68d6b6aef7..bbb0432581 100644
--- a/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/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