Minor code cleanup. NFC.

llvm-svn: 296222
This commit is contained in:
Junmo Park 2017-02-25 01:50:45 +00:00
parent ff60e0f898
commit 061bec802e
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ bool InlineSpiller::reMaterializeFor(LiveInterval &VirtReg, MachineInstr &MI) {
Edit->rematerializeAt(*MI.getParent(), MI, NewVReg, RM, TRI);
// We take the DebugLoc from MI, since OrigMI may be attributed to a
// different source location.
// different source location.
auto *NewMI = LIS.getInstructionFromIndex(DefIdx);
NewMI->setDebugLoc(MI.getDebugLoc());