[libc++] Clean up logic around aligned/sized allocation and deallocation
authorLouis Dionne <ldionne@apple.com>
Fri, 25 Sep 2020 13:24:14 +0000 (09:24 -0400)
committerLouis Dionne <ldionne@apple.com>
Fri, 9 Oct 2020 16:43:28 +0000 (12:43 -0400)
commitc778f6c4f9d511023c0d71b9e14a90e60445d314
tree678fca7555d793b0ea58069fa65f75cc6f4bc291
parenta3a24316087d0e1b4db0b8fee19cdee8b7968032
[libc++] Clean up logic around aligned/sized allocation and deallocation

Due to the need to support compilers that implement builtin operator
new/delete but not their align_val_t overloaded versions, there was a
lot of complexity. By assuming that a compiler that supports the builtin
new/delete operators also supports their align_val_t overloads, the code
can be simplified quite a bit.

Differential Revision: https://reviews.llvm.org/D88301
libcxx/include/__config
libcxx/include/new