aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-11-22 20:56:05 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-11-22 20:56:05 +0000
commit475d31729d592816fe7278358245deb0b0e41875 (patch)
tree34ab0a7a6deff2f6e92b299a1b2e771683bb70fc /lib/Target/Alpha/AlphaISelPattern.cpp
parentab48be377298bd509427a29e174cf4e305138819 (diff)
Fix warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index e9e5237217..45147f974c 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -1616,7 +1616,7 @@ void AlphaISel::Select(SDOperand N) {
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 @@ void AlphaISel::Select(SDOperand N) {
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;