[libcxx-commits] [libcxx] [libcxx] Use `aligned_alloc` for testing instead of `posix_memalign` (PR #101748)
Joseph Huber via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 5 12:05:16 PDT 2024
================
@@ -460,6 +460,8 @@ inline void* alocate_aligned_impl(std::size_t size, std::align_val_t align) {
void* ret = nullptr;
# ifdef USE_ALIGNED_ALLOC
ret = _aligned_malloc(size, alignment);
+# elif TEST_STD_VER >= 17
+ ret = aligned_alloc(alignment, size);
----------------
jhuber6 wrote:
Done
https://github.com/llvm/llvm-project/pull/101748
More information about the libcxx-commits
mailing list