[llvm-commits] [llvm] r67364 - /llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Chris Lattner
sabre at nondot.org
Thu Mar 19 22:08:24 PDT 2009
Author: lattner
Date: Fri Mar 20 00:08:24 2009
New Revision: 67364
URL: http://llvm.org/viewvc/llvm-project?rev=67364&view=rev
Log:
Apply the patch requested in PR3846.
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=67364&r1=67363&r2=67364&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Fri Mar 20 00:08:24 2009
@@ -574,7 +574,7 @@
break;
}
- if (DoIncr) ++I;
+ if (DoIncr && I != BB->end()) ++I;
// Update register states.
if (RS && MI) RS->forward(MI);
More information about the llvm-commits
mailing list