add the correct fallback for ARMDAGToDAGISel::SelectAddrMode1
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 11 Sep 2006 19:23:32 +0000 (19:23 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 11 Sep 2006 19:23:32 +0000 (19:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30261 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelDAGToDAG.cpp

index 353e3fccf4a4b1d785680b12b14dbd0cbe0344ac..c356f09a691378364f5aaf03b30afeec7db7290b 100644 (file)
@@ -482,19 +482,16 @@ static bool isInt12Immediate(SDOperand Op, short &Imm) {
 bool ARMDAGToDAGISel::SelectAddrMode1(SDOperand N,
                                      SDOperand &Arg) {
   switch(N.getOpcode()) {
-  case ISD::CopyFromReg:
-    Arg    = N;
-    return true;
   case ISD::Constant: {
     //TODO:check that we have a valid constant
     int32_t t = cast<ConstantSDNode>(N)->getValue();
     Arg       = CurDAG->getTargetConstant(t, MVT::i32);
     return true;
   }
-  default:
-    std::cerr << "OpCode = " <<  N.getOpcode() << "\n";
-    assert(0);
   }
+
+  Arg    = N;
+  return true;
 }
 
 //register plus/minus 12 bit offset