Apply the patch requested in PR3846.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67364 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-03-20 05:08:24 +00:00
parent bc65ca8de5
commit 8fc2d0ee8d

View File

@ -574,7 +574,7 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
break;
}
if (DoIncr) ++I;
if (DoIncr && I != BB->end()) ++I;
// Update register states.
if (RS && MI) RS->forward(MI);