[llvm-commits] [llvm] r153996 - /llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Craig Topper craig.topper at gmail.com
Tue Apr 3 21:42:42 PDT 2012


Author: ctopper
Date: Tue Apr  3 23:42:42 2012
New Revision: 153996

URL: http://llvm.org/viewvc/llvm-project?rev=153996&view=rev
Log:
Remove default case from switch that was already covering all cases.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp?rev=153996&r1=153995&r2=153996&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Tue Apr  3 23:42:42 2012
@@ -2434,7 +2434,6 @@
     // We can always fold X == X for integer setcc's.
     if (N0.getValueType().isInteger()) {
       switch (getBooleanContents(N0.getValueType().isVector())) {
-      default: llvm_unreachable ("Unknown boolean content.");
       case UndefinedBooleanContent: 
       case ZeroOrOneBooleanContent: 
         return DAG.getConstant(ISD::isTrueWhenEqual(Cond), VT);





More information about the llvm-commits mailing list