diff options
| author | Nate Begeman <natebegeman@mac.com> | 2005-04-02 00:41:14 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2005-04-02 00:41:14 +0000 |
| commit | 69d39433c482212828ea9481bbeb4ff50f473fc5 (patch) | |
| tree | 19f1c8a4623c8ee73409b16959b31ed6cf2d8c88 /llvm/lib | |
| parent | 9f680da78472d31706922579c6db5f47d90f5f99 (diff) | |
| download | bcm5719-llvm-69d39433c482212828ea9481bbeb4ff50f473fc5.tar.gz bcm5719-llvm-69d39433c482212828ea9481bbeb4ff50f473fc5.zip | |
Fix a warning about an unhandled switch case
llvm-svn: 20994
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 52449ef376a..f75d5f8a6a9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/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; |

