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-07-30 22:27:38 +00:00
2017-05-10 21:40:58 +00:00
2018-07-27 20:02:58 +00:00
2017-05-31 22:07:49 +00:00
2017-08-03 02:50:43 +00:00
2018-07-11 23:14:33 +00:00
2018-08-10 13:24:56 +00:00
2018-01-05 20:48:29 +00:00
2017-01-16 21:01:00 +00:00
2018-07-03 03:25:10 +00:00
2018-04-25 23:38:41 +00:00
2018-08-01 02:08:59 +00:00
2018-08-01 01:33:38 +00:00
2018-08-01 13:54:28 +00:00
2018-07-11 23:14:33 +00:00
2018-08-01 02:08:59 +00:00
2018-08-01 01:33:38 +00:00
2018-07-11 23:14:33 +00:00
2017-05-31 22:07:49 +00:00
2018-03-22 04:42:56 +00:00
2017-05-31 22:07:49 +00:00
2018-02-06 18:58:05 +00:00
2018-02-21 21:36:18 +00:00
2018-08-03 22:36:53 +00:00
2017-04-19 01:23:39 +00:00
2017-05-31 22:07:49 +00:00
2018-07-14 04:15:19 +00:00
2018-08-03 22:36:53 +00:00
2018-08-02 02:11:06 +00:00
2018-06-01 18:02:53 +00:00
2018-08-03 22:36:53 +00:00
2018-07-31 23:29:06 +00:00
2018-08-01 02:38:30 +00:00
2018-08-03 22:36:53 +00:00
2018-08-01 02:38:30 +00:00
2018-07-11 23:14:33 +00:00
2018-07-11 23:14:33 +00:00
2018-07-10 13:21:03 +00:00
2018-02-19 15:41:36 +00:00
2017-03-02 03:22:18 +00:00
2018-08-03 22:36:53 +00:00
2017-04-07 02:20:52 +00:00
2017-04-06 04:47:49 +00:00
2018-07-31 19:25:00 +00:00
2017-05-10 20:57:45 +00:00
2016-11-08 03:31:42 +00:00
2018-05-18 23:44:13 +00:00
2018-07-11 23:14:33 +00:00
2018-07-27 03:07:09 +00:00
2018-07-31 23:29:06 +00:00
2018-06-05 22:32:52 +00:00
2018-07-27 03:07:09 +00:00
2018-08-03 22:36:53 +00:00
2018-07-24 09:15:03 +00:00
2018-07-11 23:14:33 +00:00
2016-10-27 15:10:07 +00:00
2018-07-11 23:14:33 +00:00
2017-01-04 23:56:00 +00:00
2018-07-25 19:40:01 +00:00
2018-07-14 03:06:11 +00:00
2017-06-01 02:29:37 +00:00
2016-10-10 15:56:01 +00:00
2018-06-05 22:32:52 +00:00
2018-07-11 23:14:33 +00:00
2016-11-19 01:14:15 +00:00
2018-08-01 01:33:38 +00:00
2018-07-11 23:14:33 +00:00
2018-08-01 02:08:59 +00:00
2018-08-01 02:38:30 +00:00
2018-01-02 17:17:01 +00:00
2018-08-10 13:24:56 +00:00
2018-08-03 22:36:53 +00:00
2018-05-25 02:08:49 +00:00
2018-07-11 23:14:33 +00:00
2018-05-22 01:57:53 +00:00
2018-01-16 14:54:36 +00:00
2018-01-02 17:17:01 +00:00
2018-07-11 23:14:33 +00:00
2017-11-26 02:55:38 +00:00
2018-08-01 01:33:38 +00:00
2018-08-01 02:08:59 +00:00
2018-08-03 22:36:53 +00:00
2018-08-03 22:36:53 +00:00
2018-05-22 01:57:53 +00:00
2017-02-10 01:27:42 +00:00
2018-08-03 22:36:53 +00:00
2018-01-23 18:53:33 +00:00
2017-05-10 20:57:45 +00:00
2018-07-11 23:14:33 +00:00
2018-07-17 05:48:48 +00:00
2018-03-21 00:36:05 +00:00
2017-04-18 23:38:41 +00:00
2018-08-01 02:08:59 +00:00
2018-02-12 19:13:24 +00:00
2018-03-20 22:37:37 +00:00
2018-02-06 20:56:55 +00:00
2018-08-02 01:56:02 +00:00
2017-01-04 23:56:00 +00:00
2018-08-03 22:36:53 +00:00
2018-08-01 01:33:38 +00:00
2018-08-01 01:33:38 +00:00
2018-08-01 02:08:59 +00:00
2018-03-22 04:42:56 +00:00
2018-03-23 23:42:30 +00:00
2018-07-11 23:14:33 +00:00
2018-04-03 15:48:24 +00:00
2017-09-15 18:49:34 +00:00