[llvm] 358d654 - [SandboxVectorizer] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 14:06:22 PST 2025
Author: Kazu Hirata
Date: 2025-01-17T14:06:15-08:00
New Revision: 358d65463b215a18e731b3a5494d51e1bcbd1356
URL: https://github.com/llvm/llvm-project/commit/358d65463b215a18e731b3a5494d51e1bcbd1356
DIFF: https://github.com/llvm/llvm-project/commit/358d65463b215a18e731b3a5494d51e1bcbd1356.diff
LOG: [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]
Added:
Modified:
llvm/unittests/Transforms/Vectorize/SandboxVectorizer/InstrMapsTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/InstrMapsTest.cpp b/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/InstrMapsTest.cpp
index 37ce7c962f1d96..1d7c8f9cdde040 100644
--- a/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/InstrMapsTest.cpp
+++ b/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/InstrMapsTest.cpp
@@ -78,7 +78,7 @@ define void @foo(i8 %v0, i8 %v1, i8 %v2, i8 %v3, <2 x i8> %vec) {
// Check callbacks: erase original instr.
Add0->eraseFromParent();
EXPECT_FALSE(IMaps.getOrigLane(VAdd0, Add0));
- EXPECT_EQ(*IMaps.getOrigLane(VAdd0, Add1), 1);
+ EXPECT_EQ(*IMaps.getOrigLane(VAdd0, Add1), 1U);
EXPECT_EQ(IMaps.getVectorForOrig(Add0), nullptr);
// Check callbacks: erase vector instr.
VAdd0->eraseFromParent();
More information about the llvm-commits
mailing list