[libc-commits] [libc] 98067a3 - [libc] Outer size, not inner size
Daniel Thornburgh via libc-commits
libc-commits at lists.llvm.org
Fri Jan 17 13:15:59 PST 2025
Author: Daniel Thornburgh
Date: 2025-01-17T13:15:53-08:00
New Revision: 98067a322596a5fd1d850b2645250a082e8b18f2
URL: https://github.com/llvm/llvm-project/commit/98067a322596a5fd1d850b2645250a082e8b18f2
DIFF: https://github.com/llvm/llvm-project/commit/98067a322596a5fd1d850b2645250a082e8b18f2.diff
LOG: [libc] Outer size, not inner size
Added:
Modified:
libc/test/src/__support/freestore_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/__support/freestore_test.cpp b/libc/test/src/__support/freestore_test.cpp
index 5d49f47a5fcdfa..39292b6a1211be 100644
--- a/libc/test/src/__support/freestore_test.cpp
+++ b/libc/test/src/__support/freestore_test.cpp
@@ -28,7 +28,7 @@ TEST(LlvmLibcFreeStore, TooSmall) {
ASSERT_TRUE(maybeBlock.has_value());
// On platforms with high alignment the smallest legal block may be large
// enough for a node.
- if (too_small->inner_size() >= sizeof(Block) + sizeof(FreeList::Node))
+ if (too_small->outer_size() >= sizeof(Block) + sizeof(FreeList::Node))
return;
Block *remainder = *maybeBlock;
More information about the libc-commits
mailing list