Skip to content

Commit d91f972

Browse files
committed
Use UseReg consistently
1 parent c78690f commit d91f972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ void SIFoldOperandsImpl::foldOperand(
10221022
OpToFold.setIsKill(false);
10231023

10241024
// Remove kill flags as kills may now be out of order with uses.
1025-
MRI->clearKillFlags(OpToFold.getReg());
1025+
MRI->clearKillFlags(UseReg);
10261026
if (foldCopyToAGPRRegSequence(UseMI))
10271027
return;
10281028
}

0 commit comments

Comments
 (0)