Remove dead store.
authorBill Wendling <isanbard@gmail.com>
Mon, 28 Dec 2009 01:44:39 +0000 (01:44 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 28 Dec 2009 01:44:39 +0000 (01:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92187 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PrologEpilogInserter.cpp

index e94247f3714cd0c817bb8de75d807e047c9e2384..709d46a310b1abc6760542e2c5d0b270d61e1519 100644 (file)
@@ -860,7 +860,7 @@ void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) {
               // Remove all instructions up 'til the last use, since they're
               // just calculating the value we already have.
               BB->erase(I, LastUseMI);
-              MI = I = LastUseMI;
+              I = LastUseMI;
 
               // Extend the live range of the scratch register
               PrevLastUseMI->getOperand(PrevLastUseOp).setIsKill(false);