[llvm] 8f33995 - [IPSCCP] Fix a mistake in b796eac3f2aedca449fda5a46a9b0c979d1ee102 so the test actually passes
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 01:48:53 PDT 2023
Author: Benjamin Kramer
Date: 2023-10-24T10:48:46+02:00
New Revision: 8f33995351192ea6d29a67dde55832fdf214af46
URL: https://github.com/llvm/llvm-project/commit/8f33995351192ea6d29a67dde55832fdf214af46
DIFF: https://github.com/llvm/llvm-project/commit/8f33995351192ea6d29a67dde55832fdf214af46.diff
LOG: [IPSCCP] Fix a mistake in b796eac3f2aedca449fda5a46a9b0c979d1ee102 so the test actually passes
Added:
Modified:
llvm/unittests/Transforms/Utils/LocalTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Transforms/Utils/LocalTest.cpp b/llvm/unittests/Transforms/Utils/LocalTest.cpp
index 014ab746914f449..64bd25fa4539e98 100644
--- a/llvm/unittests/Transforms/Utils/LocalTest.cpp
+++ b/llvm/unittests/Transforms/Utils/LocalTest.cpp
@@ -1204,7 +1204,7 @@ TEST(Local, ExpressionForConstant) {
IntegerType *Int16Ty = Type::getInt16Ty(Context);
Expr = createExpression(ConstantInt::getSigned(Int16Ty, -50), Int16Ty);
EXPECT_NE(Expr, nullptr);
- EXPECT_EQ(Expr->getElement(1), -50U);
+ EXPECT_EQ(Expr->getElement(1), -50ULL);
IntegerType *Int32Ty = Type::getInt32Ty(Context);
Expr = createExpression(ConstantInt::get(Int32Ty, 0x7FFFFFFF), Int32Ty);
More information about the llvm-commits
mailing list