summaryrefslogtreecommitdiff
path: root/lib/Target/XCore/XCoreFrameLowering.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-13 22:47:43 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-13 22:47:43 +0000
commitf7ca976e74eafeeab0e9097f0fb07d6bb447415b (patch)
tree04ad8c9016b178af27b75bf153ec6967f0036b5d /lib/Target/XCore/XCoreFrameLowering.cpp
parent0fba7143596330eb0e6d5e19777278abe1c9ba70 (diff)
downloadllvm-f7ca976e74eafeeab0e9097f0fb07d6bb447415b.tar.gz
llvm-f7ca976e74eafeeab0e9097f0fb07d6bb447415b.tar.bz2
llvm-f7ca976e74eafeeab0e9097f0fb07d6bb447415b.tar.xz
Fix a few more places that should use MBB::getLastNonDebugInstr().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreFrameLowering.cpp')
-rw-r--r--lib/Target/XCore/XCoreFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreFrameLowering.cpp b/lib/Target/XCore/XCoreFrameLowering.cpp
index 1b91d42314..0645c1654a 100644
--- a/lib/Target/XCore/XCoreFrameLowering.cpp
+++ b/lib/Target/XCore/XCoreFrameLowering.cpp
@@ -208,7 +208,7 @@ void XCoreFrameLowering::emitPrologue(MachineFunction &MF) const {
void XCoreFrameLowering::emitEpilogue(MachineFunction &MF,
MachineBasicBlock &MBB) const {
MachineFrameInfo *MFI = MF.getFrameInfo();
- MachineBasicBlock::iterator MBBI = prior(MBB.end());
+ MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
const XCoreInstrInfo &TII =
*static_cast<const XCoreInstrInfo*>(MF.getTarget().getInstrInfo());
DebugLoc dl = MBBI->getDebugLoc();