Add default case to fix -Wswitch errors
authorJordan Rupprecht <rupprecht@google.com>
Mon, 2 Mar 2020 22:23:17 +0000 (14:23 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Mon, 2 Mar 2020 22:23:46 +0000 (14:23 -0800)
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 28a0eb6e37240d37cd41fd7c14ef192fa9ddb134..eafa0974a7357f3ac01109685e1630e60f2161e6 100644 (file)
@@ -3871,6 +3871,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
         case ISD::SETUEQ: NewCond = IsNegInf ? ISD::SETULE : ISD::SETUGE; break;
         case ISD::SETUNE: NewCond = IsNegInf ? ISD::SETUGT : ISD::SETULT; break;
         case ISD::SETONE: NewCond = IsNegInf ? ISD::SETOGT : ISD::SETOLT; break;
+        default: break;
         }
         if (NewCond != ISD::SETCC_INVALID &&
             isCondCodeLegal(NewCond, N0.getSimpleValueType()))