[compiler-rt] 72584d9 - [scudo] Fix inconsistent signed/unsigned comparison
Chia-hung Duan via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 15 11:15:59 PST 2023
Author: Chia-hung Duan
Date: 2023-02-15T19:14:17Z
New Revision: 72584d91990bb22c4df7dcbd6c003144dca7874c
URL: https://github.com/llvm/llvm-project/commit/72584d91990bb22c4df7dcbd6c003144dca7874c
DIFF: https://github.com/llvm/llvm-project/commit/72584d91990bb22c4df7dcbd6c003144dca7874c.diff
LOG: [scudo] Fix inconsistent signed/unsigned comparison
Fix broken test on PPC
Differential Revision: https://reviews.llvm.org/D144121
Added:
Modified:
compiler-rt/lib/scudo/standalone/tests/scudo_hooks_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/tests/scudo_hooks_test.cpp b/compiler-rt/lib/scudo/standalone/tests/scudo_hooks_test.cpp
index cf69f376ac446..7184ec12a8bb3 100644
--- a/compiler-rt/lib/scudo/standalone/tests/scudo_hooks_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/scudo_hooks_test.cpp
@@ -76,7 +76,7 @@ TEST(ScudoHooksTest, AllocateHooks) {
EXPECT_EQ(Ptr, NewPtr);
EXPECT_EQ(nullptr, LastAllocatedPtr);
- EXPECT_EQ(0, LastRequestSize);
+ EXPECT_EQ(0U, LastRequestSize);
EXPECT_EQ(nullptr, LastDeallocatedPtr);
}
@@ -104,7 +104,7 @@ TEST(ScudoHooksTest, AllocateHooks) {
EXPECT_EQ(Ptr, LastDeallocatedPtr);
} else {
EXPECT_EQ(nullptr, LastAllocatedPtr);
- EXPECT_EQ(0, LastRequestSize);
+ EXPECT_EQ(0U, LastRequestSize);
EXPECT_EQ(nullptr, LastDeallocatedPtr);
}
More information about the llvm-commits
mailing list