Skip to content

Commit 14006c8

Browse files
[AMDGPU] Fix a warning
This patch fixes: llvm/lib/Target/AMDGPU/SILateBranchLowering.cpp:173:64: error: comparison of integers of different signs: 'unsigned int' and 'int' [-Werror,-Wsign-compare]
1 parent bf5cdd6 commit 14006c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SILateBranchLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ void SILateBranchLowering::expandChainCall(MachineInstr &MI,
170170
*TII->getNamedOperand(MI, AMDGPU::OpName::exec));
171171
}
172172

173-
for (unsigned OpIdx = MI.getNumExplicitOperands() - 1; OpIdx >= ExecIdx;
174-
--OpIdx)
173+
for (int OpIdx = MI.getNumExplicitOperands() - 1; OpIdx >= ExecIdx; --OpIdx)
175174
MI.removeOperand(OpIdx);
176175

177176
MI.setDesc(TII->get(AMDGPU::SI_TCRETURN));

0 commit comments

Comments
 (0)