Louis Dionne 53ac1776f3 [libc++] Enable aligned allocation based on feature test macro, irrespective of standard
Summary:
The current code enables aligned allocation functions when compiling in C++17
and later. This is a problem because aligned allocation functions might not
be supported on the target platform, which leads to an error at link time.

Since r338934, Clang knows not to define __cpp_aligned_new when it's not
available on the target platform -- this commit takes advantage of that to
only use aligned allocation functions when they are available.

Reviewers: vsapsai, EricWF

Subscribers: christof, dexonsmith, cfe-commits, EricWF, mclow.lists

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

llvm-svn: 339431
2018-08-10 13:24:56 +00:00
..
2018-06-01 18:02:53 +00:00
2018-05-18 23:44:13 +00:00
2018-07-27 03:07:09 +00:00
2018-07-27 03:07:09 +00:00
2017-06-01 02:29:37 +00:00
2016-10-10 15:56:01 +00:00
2018-05-25 02:08:49 +00:00
2018-02-12 19:13:24 +00:00