[Sparc] Use call's debugloc for the unimp instruction.
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>
Tue, 30 Jul 2013 02:26:29 +0000 (02:26 +0000)
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>
Tue, 30 Jul 2013 02:26:29 +0000 (02:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187402 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/DelaySlotFiller.cpp

index b93f5e4d7ac4f308a7176b1f350f5cd0f9e29d51..b101751e7071c5a31ab51b3366b02025024ef043 100644 (file)
@@ -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);
     }
   }