Skip to content

Commit 704a10c

Browse files
authored
[AMDGPU] Fix unittest sign-compare (llvm#155235)
Some buildbots build unittests with `-Werror,-Wsign-compare`.
1 parent 7c9c331 commit 704a10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/Target/AMDGPU/AMDGPUUnitTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ TEST(AMDGPU, TestGetNamedOperandIdx) {
335335
if (OpName == AMDGPU::OpName::NUM_OPERAND_NAMES)
336336
continue;
337337
int16_t RetrievedIdx = AMDGPU::getNamedOperandIdx(Opcode, OpName);
338-
EXPECT_EQ(Idx, RetrievedIdx)
338+
EXPECT_EQ(Idx, static_cast<unsigned>(RetrievedIdx))
339339
<< "Opcode " << Opcode << " (" << MCII->getName(Opcode) << ')';
340340
}
341341
}

0 commit comments

Comments
 (0)