diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2015-08-28 17:53:26 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2015-08-28 17:53:26 +0000 |
commit | 28e2b717fc42a9282e56ab58c349b13108fc70e0 (patch) | |
tree | 2df3fc0f2956cbd81e67351fe98b14dac812e200 /llvm/lib/Target/Mips/MipsSEFrameLowering.cpp | |
parent | d9c830154f6bbfbb08f19054a81cc03d7333a567 (diff) | |
download | bcm5719-llvm-28e2b717fc42a9282e56ab58c349b13108fc70e0.tar.gz bcm5719-llvm-28e2b717fc42a9282e56ab58c349b13108fc70e0.zip |
[mips] Remove incorrect DebugLoc entries from prologue
This has been causing the prologue_end to be incorrectly positioned.
Patch by Vladimir Radosavljevic.
Differential Revision: http://reviews.llvm.org/D11293
llvm-svn: 246309
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSEFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsSEFrameLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp b/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp index 5b4608fad2b..a516e947975 100644 --- a/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp +++ b/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp @@ -376,7 +376,7 @@ void MipsSEFrameLowering::emitPrologue(MachineFunction &MF, *static_cast<const MipsRegisterInfo *>(STI.getRegisterInfo()); MachineBasicBlock::iterator MBBI = MBB.begin(); - DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); + DebugLoc dl; MipsABIInfo ABI = STI.getABI(); unsigned SP = ABI.GetStackPtr(); unsigned FP = ABI.GetFramePtr(); |