[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Nate Begeman
natebegeman at mac.com
Fri Apr 1 16:41:25 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.65 -> 1.66
---
Log message:
Fix a warning about an unhandled switch case
---
Diffs of the changes: (+4 -3)
LegalizeDAG.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.65 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.66
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.65 Fri Apr 1 16:34:39 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Fri Apr 1 18:41:14 2005
@@ -222,8 +222,9 @@
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 @@
else
assert(0 && "Unknown value type!");
break;
- case Legal:
+ case TargetLowering::Legal:
break;
}
break;
More information about the llvm-commits
mailing list