[compiler-rt] 79e96b2 - Fix-forward a -Wconversion scudo bug.
Mitch Phillips via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 10:14:42 PDT 2023
Author: Mitch Phillips
Date: 2023-09-15T19:14:29+02:00
New Revision: 79e96b2457fe4e1586effc36aab657c508c122cf
URL: https://github.com/llvm/llvm-project/commit/79e96b2457fe4e1586effc36aab657c508c122cf
DIFF: https://github.com/llvm/llvm-project/commit/79e96b2457fe4e1586effc36aab657c508c122cf.diff
LOG: Fix-forward a -Wconversion scudo bug.
Related to fd1721d8609791c89102bd7f922fe92056535157, fix up a
signed-unsigned type comparison bug.
Added:
Modified:
compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp b/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
index 05e8e527381e37f..623550535b6c8e2 100644
--- a/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
@@ -398,7 +398,7 @@ void MallInfoTest() {
EXPECT_NE(P, nullptr);
MI = mallinfo();
EXPECT_GE(MI.uordblks, Allocated + BypassQuarantineSize);
- EXPECT_GT(MI.hblkhd, 0U);
+ EXPECT_GT(MI.hblkhd, static_cast<FieldType>(0));
FieldType Free = MI.fordblks;
free(P);
MI = mallinfo();
More information about the llvm-commits
mailing list