diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-20 05:08:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-20 05:08:24 +0000 |
commit | 8fc2d0ee8dd4e077ee90a1fcc36fd0101c2947a2 (patch) | |
tree | ddf17f7981663183bf20c5e3da167cd77b428c84 /lib | |
parent | bc65ca8de591e278fc613b5dc0e178b2ddcd215e (diff) | |
download | external_llvm-8fc2d0ee8dd4e077ee90a1fcc36fd0101c2947a2.zip external_llvm-8fc2d0ee8dd4e077ee90a1fcc36fd0101c2947a2.tar.gz external_llvm-8fc2d0ee8dd4e077ee90a1fcc36fd0101c2947a2.tar.bz2 |
Apply the patch requested in PR3846.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index ab63f49..322c28b 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -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); |