Skip to content

Commit 4fb31e4

Browse files
committed
AMDGPU: Use const reference for DebugLoc
1 parent 4147316 commit 4fb31e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5879,7 +5879,7 @@ unsigned SIInstrInfo::buildExtractSubReg(
58795879
return RI.getSubReg(SuperReg.getReg(), SubIdx);
58805880

58815881
MachineBasicBlock *MBB = MI->getParent();
5882-
DebugLoc DL = MI->getDebugLoc();
5882+
const DebugLoc &DL = MI->getDebugLoc();
58835883
Register SubReg = MRI.createVirtualRegister(SubRC);
58845884

58855885
unsigned NewSubIdx = RI.composeSubRegIndices(SuperReg.getSubReg(), SubIdx);

0 commit comments

Comments
 (0)