Disable aligned new/delete on Apple platforms without posix_memalign
authorEric Fiselier <eric@efcs.ca>
Fri, 20 Jan 2017 01:47:26 +0000 (01:47 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 20 Jan 2017 01:47:26 +0000 (01:47 +0000)
commitefea04512c28e1b8dea3d732e18a9213f3ed33c6
treebb3ee3aef58bafe73e54e4ba2749f8546953ff0a
parentd294823930f4815eab824ae56ca7e6d9b1e8134c
Disable aligned new/delete on Apple platforms without posix_memalign

Summary:
This patch disables the aligned new/delet overloads on Apple platforms without `posix_memalign`. This fixes libc++.dylib build regressions on such platforms.
This fixes http://llvm.org/PR31448.

This patch should also be merged into the 4.0 release branch

Reviewers: mclow.lists, rsmith, dexonsmith, jeremyhu

Reviewed By: mclow.lists

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D28931

llvm-svn: 292564
libcxx/include/__config
libcxx/include/new
libcxx/src/new.cpp