Skip to content

Commit 358d654

Browse files
[SandboxVectorizer] 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 ae932be commit 358d654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/Transforms/Vectorize/SandboxVectorizer/InstrMapsTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ define void @foo(i8 %v0, i8 %v1, i8 %v2, i8 %v3, <2 x i8> %vec) {
7878
// Check callbacks: erase original instr.
7979
Add0->eraseFromParent();
8080
EXPECT_FALSE(IMaps.getOrigLane(VAdd0, Add0));
81-
EXPECT_EQ(*IMaps.getOrigLane(VAdd0, Add1), 1);
81+
EXPECT_EQ(*IMaps.getOrigLane(VAdd0, Add1), 1U);
8282
EXPECT_EQ(IMaps.getVectorForOrig(Add0), nullptr);
8383
// Check callbacks: erase vector instr.
8484
VAdd0->eraseFromParent();

0 commit comments

Comments
 (0)