[libc-commits] [libc] [libc] Fix internal alignment in allcoator (PR #146738)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Jul 2 09:58:44 PDT 2025
================
@@ -584,7 +586,7 @@ void *aligned_allocate(uint32_t alignment, uint64_t size) {
// If the requested alignment is less than what we already provide this is
// just a normal allocation.
- if (alignment < MIN_ALIGNMENT + 1)
+ if (alignment <= MIN_ALIGNMENT + 1)
----------------
jhuber6 wrote:
Workaround for this exact bug because I knew that the true minimum alignment was `8` and now it's 16 correctly.
https://github.com/llvm/llvm-project/pull/146738
More information about the libc-commits
mailing list