projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d60c0ef
)
Fix a warning about an unhandled switch case
author
Nate Begeman
<natebegeman@mac.com>
Sat, 2 Apr 2005 00:41:14 +0000
(
00:41
+0000)
committer
Nate Begeman
<natebegeman@mac.com>
Sat, 2 Apr 2005 00:41:14 +0000
(
00:41
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20994
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 52449ef376a046c433424f55a05ae015928f6eae..f75d5f8a6a97f4dce1ebef8b61974c63d96acb4e 100644
(file)
--- 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;