[llvm-commits] [llvm] r92187 - /llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp

Bill Wendling isanbard at gmail.com
Sun Dec 27 17:44:39 PST 2009


Author: void
Date: Sun Dec 27 19:44:39 2009
New Revision: 92187

URL: http://llvm.org/viewvc/llvm-project?rev=92187&view=rev
Log:
Remove dead store.

Modified:
    llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp

Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=92187&r1=92186&r2=92187&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Sun Dec 27 19:44:39 2009
@@ -860,7 +860,7 @@
               // 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);





More information about the llvm-commits mailing list