[llvm] r176962 - No functionality change. Use unreachable in getCompileUnit.

Manman Ren mren at apple.com
Wed Mar 13 11:33:41 PDT 2013


Author: mren
Date: Wed Mar 13 13:33:41 2013
New Revision: 176962

URL: http://llvm.org/viewvc/llvm-project?rev=176962&view=rev
Log:
No functionality change. Use unreachable in getCompileUnit.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp?rev=176962&r1=176961&r2=176962&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp Wed Mar 13 13:33:41 2013
@@ -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





More information about the llvm-commits mailing list