[llvm] 5f2acfb - [ScalarEvolutionExpanderTest] Avoid sign warning
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 06:47:44 PST 2023
Author: Roman Lebedev
Date: 2023-01-05T17:47:17+03:00
New Revision: 5f2acfb6356f012a9191e8ea931ce7be686e1ba8
URL: https://github.com/llvm/llvm-project/commit/5f2acfb6356f012a9191e8ea931ce7be686e1ba8
DIFF: https://github.com/llvm/llvm-project/commit/5f2acfb6356f012a9191e8ea931ce7be686e1ba8.diff
LOG: [ScalarEvolutionExpanderTest] Avoid sign warning
Added:
Modified:
llvm/unittests/Transforms/Utils/ScalarEvolutionExpanderTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Transforms/Utils/ScalarEvolutionExpanderTest.cpp b/llvm/unittests/Transforms/Utils/ScalarEvolutionExpanderTest.cpp
index 30ec255bb45c..eb1d487ed11d 100644
--- a/llvm/unittests/Transforms/Utils/ScalarEvolutionExpanderTest.cpp
+++ b/llvm/unittests/Transforms/Utils/ScalarEvolutionExpanderTest.cpp
@@ -948,7 +948,7 @@ TEST_F(ScalarEvolutionExpanderTest, ExpandNonIntegralPtrWithNullBase) {
auto *GEP = dyn_cast<GetElementPtrInst>(V);
EXPECT_TRUE(GEP);
EXPECT_TRUE(cast<Constant>(GEP->getPointerOperand())->isNullValue());
- EXPECT_EQ(GEP->getNumOperands(), 2);
+ EXPECT_EQ(GEP->getNumOperands(), 2U);
EXPECT_TRUE(match(
GEP->getOperand(1),
m_Add(m_Shl(m_Specific(Offset), m_SpecificInt(2)), m_SpecificInt(1))));
More information about the llvm-commits
mailing list