Skip to content

Commit 7038474

Browse files
epilkDavid Salinas
authored andcommitted
Fix an incorrect DebugLoc in InstrEmitter.cpp
Change-Id: Ifeeeb64c475aa28ee42c15400ab9946c356478f5
1 parent baa883c commit 7038474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ InstrEmitter::AddRegisterOperand(MachineInstrBuilder &MIB,
353353
OpRC = TRI->getAllocatableClass(OpRC);
354354
assert(OpRC && "Constraints cannot be fulfilled for allocation");
355355
Register NewVReg = MRI->createVirtualRegister(OpRC);
356-
BuildMI(*MBB, InsertPos, Op.getNode()->getDebugLoc(),
356+
BuildMI(*MBB, InsertPos, MIB->getDebugLoc(),
357357
TII->get(TargetOpcode::COPY), NewVReg).addReg(VReg);
358358
VReg = NewVReg;
359359
} else {

0 commit comments

Comments
 (0)