[llvm-commits] [llvm] r148293 - in /llvm/trunk: lib/VMCore/Core.cpp utils/TableGen/CodeGenDAGPatterns.cpp

David Blaikie dblaikie at gmail.com
Mon Jan 16 23:00:13 PST 2012


Author: dblaikie
Date: Tue Jan 17 01:00:13 2012
New Revision: 148293

URL: http://llvm.org/viewvc/llvm-project?rev=148293&view=rev
Log:
Provide better messages in llvm_unreachable.

Modified:
    llvm/trunk/lib/VMCore/Core.cpp
    llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp

Modified: llvm/trunk/lib/VMCore/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Core.cpp?rev=148293&r1=148292&r2=148293&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Core.cpp (original)
+++ llvm/trunk/lib/VMCore/Core.cpp Tue Jan 17 01:00:13 2012
@@ -1092,7 +1092,7 @@
     return LLVMCommonLinkage;
   }
 
-  llvm_unreachable("Make GCC's unreachability happy");
+  llvm_unreachable("Invalid GlobalValue linkage!");
 }
 
 void LLVMSetLinkage(LLVMValueRef Global, LLVMLinkage Linkage) {

Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=148293&r1=148292&r2=148293&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Tue Jan 17 01:00:13 2012
@@ -913,7 +913,7 @@
       EnforceVectorSubVectorTypeIs(NodeToApply->getExtType(ResNo), TP);
   }
   }
-  llvm_unreachable("Make GCC's unreachability happy");
+  llvm_unreachable("Invalid ConstraintType!");
 }
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list