mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
Fix a warning about an unhandled switch case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d60c0ef023
commit
ea19cd51aa
@ -222,8 +222,9 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
case ISD::UNDEF: {
|
||||
MVT::ValueType VT = Op.getValueType();
|
||||
switch (TLI.getOperationAction(ISD::UNDEF, VT)) {
|
||||
case Expand:
|
||||
case Promote:
|
||||
default: assert(0 && "This action is not supported yet!");
|
||||
case TargetLowering::Expand:
|
||||
case TargetLowering::Promote:
|
||||
if (MVT::isInteger(VT))
|
||||
Result = DAG.getConstant(0, VT);
|
||||
else if (MVT::isFloatingPoint(VT))
|
||||
@ -231,7 +232,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
else
|
||||
assert(0 && "Unknown value type!");
|
||||
break;
|
||||
case Legal:
|
||||
case TargetLowering::Legal:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user