summaryrefslogtreecommitdiff
path: root/gnu/llvm/compiler-rt/lib/gwp_asan/tests/basic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/compiler-rt/lib/gwp_asan/tests/basic.cpp')
-rw-r--r--gnu/llvm/compiler-rt/lib/gwp_asan/tests/basic.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/llvm/compiler-rt/lib/gwp_asan/tests/basic.cpp b/gnu/llvm/compiler-rt/lib/gwp_asan/tests/basic.cpp
index 663db91b7ef..29f420d3027 100644
--- a/gnu/llvm/compiler-rt/lib/gwp_asan/tests/basic.cpp
+++ b/gnu/llvm/compiler-rt/lib/gwp_asan/tests/basic.cpp
@@ -24,7 +24,7 @@ TEST_F(DefaultGuardedPoolAllocator, NullptrIsNotMine) {
TEST_F(CustomGuardedPoolAllocator, SizedAllocations) {
InitNumSlots(1);
- std::size_t MaxAllocSize = GPA.maximumAllocationSize();
+ std::size_t MaxAllocSize = GPA.getAllocatorState()->maximumAllocationSize();
EXPECT_TRUE(MaxAllocSize > 0);
for (unsigned AllocSize = 1; AllocSize <= MaxAllocSize; AllocSize <<= 1) {
@@ -37,7 +37,8 @@ TEST_F(CustomGuardedPoolAllocator, SizedAllocations) {
}
TEST_F(DefaultGuardedPoolAllocator, TooLargeAllocation) {
- EXPECT_EQ(nullptr, GPA.allocate(GPA.maximumAllocationSize() + 1));
+ EXPECT_EQ(nullptr,
+ GPA.allocate(GPA.getAllocatorState()->maximumAllocationSize() + 1));
}
TEST_F(CustomGuardedPoolAllocator, AllocAllSlots) {