[PATCH] D34556: [libcxx] Annotate c++17 aligned new/delete operators with availability attribute

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 23 07:59:43 PDT 2017

ahatanak created this revision.

This is needed because older versions of libc++ do not have these operators. If users target an older deployment target and try to compile programs in which these operators are explicitly called, the compiler will complain.

The following is the list of minimum deployment targets for the four OSes:

macosx: 10.13
ios: 11.0
tvos: 11.0
watchos: 4.0

I followed the other availability macros in using "strict", but I'm not sure this was the right decision. The documentation seems to recommend not using "strict" (it says that weakly-linking is almost always a better API choice).




-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34556.103693.patch
Type: text/x-patch
Size: 6789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170623/105f7a76/attachment-0001.bin>

More information about the cfe-commits mailing list