forked from OSchip/llvm-project
Add default case to fix -Wswitch errors
This commit is contained in:
parent
c77fc00eec
commit
d7803c3832
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue