summaryrefslogtreecommitdiff
path: root/libcxx/src
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2022-12-02 13:45:49 -0800
committerLouis Dionne <ldionne.2@gmail.com>2023-01-26 14:41:13 -0500
commit36080434a8858c33f2af2382be748caed131385f (patch)
treec1ff0a648ef822aa872d71e78ba5be2a534995c9 /libcxx/src
parent2e3153059c268700d4b399a8cbba28e9c2514e09 (diff)
downloadllvm-36080434a8858c33f2af2382be748caed131385f.tar.gz
[libc++] Move the definition of aligned allocation helpers outside of <new>
They are not needed in <new> -- in fact they are only needed in .cpp files. Getting those out of the way makes the headers smaller and also makes it easier to use the library on platforms where aligned allocation is not available. Differential Revision: https://reviews.llvm.org/D139231
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/new.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp
index 48d6f997fdda..f2ca698512ff 100644
--- a/libcxx/src/new.cpp
+++ b/libcxx/src/new.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include <__memory/aligned_alloc.h>
#include <new>
#include <stdlib.h>