Fix a warning about an unhandled switch case

llvm-svn: 20994
This commit is contained in:
Nate Begeman 2005-04-02 00:41:14 +00:00
parent 9f680da784
commit 69d39433c4
1 changed files with 4 additions and 3 deletions

View File

@ -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;