Skip to content

Commit fc0f074

Browse files
[CodeGen] Fix warnings
This patch fixes: third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare]
1 parent 71ee336 commit fc0f074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/CodeGen/GlobalISel/CSETest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,13 @@ TEST_F(AArch64GISelMITest, TestConstantFoldICMP) {
503503
{
504504
auto I = CSEB.buildICmp(CmpInst::Predicate::ICMP_EQ, s32, One, One);
505505
EXPECT_TRUE(I->getOpcode() == TargetOpcode::G_CONSTANT);
506-
EXPECT_EQ(I->getOperand(1).getCImm()->getZExtValue(), 1);
506+
EXPECT_EQ(I->getOperand(1).getCImm()->getZExtValue(), 1U);
507507
}
508508

509509
{
510510
auto I = CSEB.buildICmp(CmpInst::Predicate::ICMP_EQ, s32, One, Two);
511511
EXPECT_TRUE(I->getOpcode() == TargetOpcode::G_CONSTANT);
512-
EXPECT_EQ(I->getOperand(1).getCImm()->getZExtValue(), 0);
512+
EXPECT_EQ(I->getOperand(1).getCImm()->getZExtValue(), 0U);
513513
}
514514

515515
LLT VecTy = LLT::fixed_vector(2, s32);

0 commit comments

Comments
 (0)