diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-03-31 23:55:16 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-03-31 23:55:16 +0000 |
commit | 649159df3cdd797f323eb8f198e6e77816ba93ef (patch) | |
tree | 199dec6ea6bf4c8b49ecaf5a97741ad9865f8b29 /llvm/lib/Target | |
parent | 073442e18352176de2531eaa0af1e2b656ed9a5a (diff) | |
download | bcm5719-llvm-649159df3cdd797f323eb8f198e6e77816ba93ef.tar.gz bcm5719-llvm-649159df3cdd797f323eb8f198e6e77816ba93ef.zip |
Follow-up to r265036: I got these iterators mixed up
llvm-svn: 265076
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 413195f09c6..6123fd50052 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -2573,8 +2573,8 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, // be spill code inserted between the CALL and ADJCALLSTACKUP instructions. MachineBasicBlock::iterator CI = I; MachineBasicBlock::iterator B = MBB.begin(); - while (CI != B && !std::prev(I)->isCall()) - --I; + while (CI != B && !std::prev(CI)->isCall()) + --CI; BuildStackAdjustment(MBB, CI, DL, -InternalAmt, /*InEpilogue=*/false); } |