[ARM] Remove dead assignment.
authorTilmann Scheller <t.scheller@samsung.com>
Fri, 19 Dec 2014 16:57:33 +0000 (16:57 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Fri, 19 Dec 2014 16:57:33 +0000 (16:57 +0000)
Found by the Clang static analyzer.

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

lib/Target/ARM/Thumb1RegisterInfo.cpp

index c10c80919d7449691fc6277f0b647efb007f867c..928c8e3c0098f60b70607d667d1da61f65c9c854 100644 (file)
@@ -234,7 +234,6 @@ void llvm::emitThumbRegPlusImmediate(MachineBasicBlock &MBB,
   // If we would emit the copy with an immediate of 0, just use tMOVr.
   if (CopyOpc && Bytes < CopyScale) {
     CopyOpc = ARM::tMOVr;
-    CopyBits = 0;
     CopyScale = 1;
     CopyNeedsCC = false;
     CopyRange = 0;