[ARM] Remove more dead code.
authorTilmann Scheller <t.scheller@samsung.com>
Wed, 5 Nov 2014 17:45:04 +0000 (17:45 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Wed, 5 Nov 2014 17:45:04 +0000 (17:45 +0000)
Dead code identified by the Clang static analyzer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221372 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelDAGToDAG.cpp

index 2d546dfd198cdaecd9264063204777eccf5f0096..69415792aacc548a6112870d578c648f089b18dd 100644 (file)
@@ -1379,10 +1379,7 @@ bool ARMDAGToDAGISel::SelectT2AddrModeSoReg(SDValue N,
         OffReg = OffReg.getOperand(0);
       else {
         ShAmt = 0;
-        ShOpcVal = ARM_AM::no_shift;
       }
-    } else {
-      ShOpcVal = ARM_AM::no_shift;
     }
   }
 
@@ -3397,7 +3394,6 @@ SDNode *ARMDAGToDAGISel::SelectInlineAsm(SDNode *N){
       std::vector<SDValue> Ops(GU->op_begin(), GU->op_end()-1);
       Ops.push_back(T1.getValue(1));
       CurDAG->UpdateNodeOperands(GU, Ops);
-      GU = T1.getNode();
     }
     else {
       // For Kind  == InlineAsm::Kind_RegUse, we first copy two GPRs into a