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

Duncan Sands baldrick at free.fr
Thu Jul 5 03:14:34 PDT 2012


Author: baldrick
Date: Thu Jul  5 05:14:33 2012
New Revision: 159742

URL: http://llvm.org/viewvc/llvm-project?rev=159742&view=rev
Log:
All cases are covered, no need for a default.  This deals with the
corresponding clang warning.

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=159742&r1=159741&r2=159742&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Thu Jul  5 05:14:33 2012
@@ -2394,7 +2394,6 @@
     // constant being emitted.
     uint64_t EqVal;
     switch (getBooleanContents(N0.getValueType().isVector())) {
-    default: llvm_unreachable("Unknown boolean contents!");
     case UndefinedBooleanContent:
     case ZeroOrOneBooleanContent:
       EqVal = ISD::isTrueWhenEqual(Cond);





More information about the llvm-commits mailing list