[compiler-rt] 77a59c3 - [ctx_profile] Fix signed-ness in CtxInstrProfilingTest.cpp
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 11:27:49 PDT 2024
Author: Mircea Trofin
Date: 2024-05-10T11:27:44-07:00
New Revision: 77a59c32105379b289ee3f7b6abbdf483bcb65c1
URL: https://github.com/llvm/llvm-project/commit/77a59c32105379b289ee3f7b6abbdf483bcb65c1
DIFF: https://github.com/llvm/llvm-project/commit/77a59c32105379b289ee3f7b6abbdf483bcb65c1.diff
LOG: [ctx_profile] Fix signed-ness in CtxInstrProfilingTest.cpp
Follow-up from `265953c`
Added:
Modified:
compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp b/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
index b8d4342c41128..d9f08b1e7efe8 100644
--- a/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
+++ b/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
@@ -17,8 +17,8 @@ TEST(ArenaTest, ZeroInit) {
memset(Buffer, 1, 1024);
Arena *A = new (Buffer) Arena(10);
for (auto I = 0U; I < A->size(); ++I)
- EXPECT_EQ(A->pos()[I], 0);
- EXPECT_EQ(A->size(), 10);
+ EXPECT_EQ(A->pos()[I], static_cast<char>(0));
+ EXPECT_EQ(A->size(), 10U);
}
TEST(ArenaTest, Basic) {
More information about the llvm-commits
mailing list