[llvm-commits] [llvm] r77480 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Eric Christopher echristo at apple.com
Wed Jul 29 11:14:04 PDT 2009


Author: echristo
Date: Wed Jul 29 13:14:04 2009
New Revision: 77480

URL: http://llvm.org/viewvc/llvm-project?rev=77480&view=rev
Log:
Add llvm_unreachable for ... unreachable code!

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=77480&r1=77479&r2=77480&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jul 29 13:14:04 2009
@@ -6207,7 +6207,7 @@
   case Intrinsic::x86_sse41_ptestnzc:{
     unsigned X86CC = 0;
     switch (IntNo) {
-    default: break;
+    default: llvm_unreachable("Bad fallthrough in Intrinsic lowering.");
     case Intrinsic::x86_sse41_ptestz:
       // ZF = 1
       X86CC = X86::COND_E;





More information about the llvm-commits mailing list