Skip to content

Commit 303e020

Browse files
[FrontEnd] Fix a warning
This patch fixes: third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned int' and 'const int' [-Werror,-Wsign-compare]
1 parent 6e8ffab commit 303e020

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5547,7 +5547,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTask) {
55475547
// Verify that the data argument is used only once, and that too in the load
55485548
// instruction that is then used for accessing shared data.
55495549
Value *DataPtr = OutlinedFn->getArg(1);
5550-
EXPECT_EQ(DataPtr->getNumUses(), 1);
5550+
EXPECT_EQ(DataPtr->getNumUses(), 1U);
55515551
EXPECT_TRUE(isa<LoadInst>(DataPtr->uses().begin()->getUser()));
55525552
Value *Data = DataPtr->uses().begin()->getUser();
55535553
EXPECT_TRUE(all_of(Data->uses(), [](Use &U) {
@@ -5604,7 +5604,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTaskNoArgs) {
56045604
->user_back());
56055605
Function *OutlinedFn = dyn_cast<Function>(TaskAllocCall->getArgOperand(5));
56065606
ASSERT_NE(OutlinedFn, nullptr);
5607-
ASSERT_EQ(OutlinedFn->arg_size(), 1);
5607+
ASSERT_EQ(OutlinedFn->arg_size(), 1U);
56085608
}
56095609

56105610
TEST_F(OpenMPIRBuilderTest, CreateTaskUntied) {

0 commit comments

Comments
 (0)