[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Nov 22 12:56:18 PST 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.186 -> 1.187
---
Log message:
Fix warning
---
Diffs of the changes: (+3 -3)
AlphaISelPattern.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.186 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.187
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.186 Mon Nov 21 22:20:06 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Tue Nov 22 14:56:05 2005
@@ -1616,7 +1616,7 @@
case MVT::f32: Opc = Alpha::IDEF_F32; break;
case MVT::f64: Opc = Alpha::IDEF_F64; break;
case MVT::i64: Opc = Alpha::IDEF_I; break;
- default: assert(0 && "should have been legalized");
+ default: Opc = 0; assert(0 && "should have been legalized");
};
BuildMI(BB, Opc, 0,
cast<RegisterSDNode>(N.getOperand(1))->getReg());
@@ -1702,14 +1702,14 @@
if (opcode == ISD::STORE) {
switch(Value.getValueType()) {
- default: assert(0 && "unknown Type in store");
+ default: Opc = 0; assert(0 && "unknown Type in store");
case MVT::i64: Opc = Alpha::STQ; break;
case MVT::f64: Opc = Alpha::STT; break;
case MVT::f32: Opc = Alpha::STS; break;
}
} else { //ISD::TRUNCSTORE
switch(cast<VTSDNode>(Node->getOperand(4))->getVT()) {
- default: assert(0 && "unknown Type in store");
+ default: Opc = 0; assert(0 && "unknown Type in store");
case MVT::i8: Opc = Alpha::STB; break;
case MVT::i16: Opc = Alpha::STW; break;
case MVT::i32: Opc = Alpha::STL; break;
More information about the llvm-commits
mailing list