[libc-commits] [libc] [libc] Fix internal alignment in allcoator (PR #146738)

Shilei Tian via libc-commits libc-commits at lists.llvm.org
Wed Jul 2 09:56:04 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)
----------------
shiltian wrote:

I'm not sure why this becomes `<=` now?

https://github.com/llvm/llvm-project/pull/146738


More information about the libc-commits mailing list