[llvm] r187402 - [Sparc] Use call's debugloc for the unimp instruction.
Venkatraman Govindaraju
venkatra at cs.wisc.edu
Mon Jul 29 19:26:30 PDT 2013
Author: venkatra
Date: Mon Jul 29 21:26:29 2013
New Revision: 187402
URL: http://llvm.org/viewvc/llvm-project?rev=187402&view=rev
Log:
[Sparc] Use call's debugloc for the unimp instruction.
Modified:
llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp
Modified: llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp?rev=187402&r1=187401&r2=187402&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp Mon Jul 29 21:26:29 2013
@@ -137,7 +137,7 @@ bool Filler::runOnMachineBasicBlock(Mach
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);
}
}
More information about the llvm-commits
mailing list