Remove dead store.

llvm-svn: 92187
This commit is contained in:
Bill Wendling 2009-12-28 01:44:39 +00:00
parent 56631085ea
commit 798e1e6f71
1 changed files with 1 additions and 1 deletions

View 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);