aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-04-02 00:41:14 +0000
committerNate Begeman <natebegeman@mac.com>2005-04-02 00:41:14 +0000
commitea19cd51aaf87c5cc19e7cdc2c32ddbefcac7b8f (patch)
tree8f7ae6dadf0d960593c0e4ec92c8de93a04d815a
parentd60c0ef0237bad613e5c3c82d3902c91e9d73c53 (diff)
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
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 52449ef376..f75d5f8a6a 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -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;