diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-07-30 02:26:29 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-07-30 02:26:29 +0000 |
commit | 80cdaf35abc528ee00bd49486d455436ec049581 (patch) | |
tree | 5b5a440bf148d01846b5aa8cf1b3481fc9097e1d | |
parent | 646cd7933b16b78443b06ce9ba2362e6695cb526 (diff) | |
download | external_llvm-80cdaf35abc528ee00bd49486d455436ec049581.zip external_llvm-80cdaf35abc528ee00bd49486d455436ec049581.tar.gz external_llvm-80cdaf35abc528ee00bd49486d455436ec049581.tar.bz2 |
[Sparc] Use call's debugloc for the unimp instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187402 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Sparc/DelaySlotFiller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Sparc/DelaySlotFiller.cpp b/lib/Target/Sparc/DelaySlotFiller.cpp index b93f5e4..b101751 100644 --- a/lib/Target/Sparc/DelaySlotFiller.cpp +++ b/lib/Target/Sparc/DelaySlotFiller.cpp @@ -137,7 +137,7 @@ bool Filler::runOnMachineBasicBlock(MachineBasicBlock &MBB) { MachineBasicBlock::iterator J = MI; ++J; // skip the delay filler. assert (J != MBB.end() && "MI needs a delay instruction."); - BuildMI(MBB, ++J, I->getDebugLoc(), + BuildMI(MBB, ++J, MI->getDebugLoc(), TII->get(SP::UNIMP)).addImm(structSize); } } |