From: Manman Ren Date: Wed, 13 Mar 2013 18:33:41 +0000 (+0000) Subject: No functionality change. Use unreachable in getCompileUnit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b1e052aa1b9e52d12831f86a1ee0fcf0c4030f1b;p=oota-llvm.git No functionality change. Use unreachable in getCompileUnit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176962 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index 68d6b6aef7b..bbb04325819 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