[llvm] [orc-rt] Fix unit test. (PR #225299)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 22:07:23 PDT 2026
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/225299
ExecutorProcessInfo::PageSize is private, use
ExecutorProcessInfo::pageSize() instead.
>From 35887fc4f101d46d8c586f1e8e14836a9bdffca4 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Tue, 22 Sep 2026 15:04:39 +1000
Subject: [PATCH] [orc-rt] Fix unit test.
ExecutorProcessInfo::PageSize is private, use
ExecutorProcessInfo::pageSize() instead.
---
orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp b/orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
index 78b16ac2beaef..3907efb6d7ea4 100644
--- a/orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
+++ b/orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
@@ -38,9 +38,9 @@ TEST(ExecutorProcessInfoTest, DetectPageSizeAtLeast4096) {
TEST(ExecutorProcessInfoTest, DetectPageSizeMatchesSystem) {
auto EPI = ExecutorProcessInfo::Detect();
- ASSERT_TRUE(EPI);
+ ASSERT_TRUE(!!EPI);
- EXPECT_EQ(EPI->PageSize, static_cast<uint64_t>(sysconf(_SC_PAGESIZE)));
+ EXPECT_EQ(EPI->pageSize(), static_cast<uint64_t>(sysconf(_SC_PAGESIZE)));
}
#endif
More information about the llvm-commits
mailing list