summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsFrameLowering.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-13 21:28:52 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-13 21:28:52 +0000
commit4bc5e389600f8c6f03e7b37e105d8ea9a02cb583 (patch)
treec8dd6b12f7e5d8191f28dbffcf3c71856209ee8f /llvm/lib/Target/Mips/MipsFrameLowering.cpp
parente1175b7c67ad577e2023e2e3c7ce18e4ec71d855 (diff)
downloadbcm5719-llvm-4bc5e389600f8c6f03e7b37e105d8ea9a02cb583.tar.gz
bcm5719-llvm-4bc5e389600f8c6f03e7b37e105d8ea9a02cb583.zip
Teach frame lowering to ignore debug values after the terminators.
llvm-svn: 123399
Diffstat (limited to 'llvm/lib/Target/Mips/MipsFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsFrameLowering.cpp b/llvm/lib/Target/Mips/MipsFrameLowering.cpp
index a81f947b02e..711887abec8 100644
--- a/llvm/lib/Target/Mips/MipsFrameLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsFrameLowering.cpp
@@ -266,7 +266,7 @@ void MipsFrameLowering::emitPrologue(MachineFunction &MF) const {
void MipsFrameLowering::emitEpilogue(MachineFunction &MF,
MachineBasicBlock &MBB) const {
- MachineBasicBlock::iterator MBBI = prior(MBB.end());
+ MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
MachineFrameInfo *MFI = MF.getFrameInfo();
MipsFunctionInfo *MipsFI = MF.getInfo<MipsFunctionInfo>();
const MipsInstrInfo &TII =
OpenPOWER on IntegriCloud