Compiler builtin for std::launder

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiler builtin for std::launder

Eric Fiselier via cfe-dev
Hi,

https://libcxx.llvm.org/cxx1z_status.html lists https://wg21.link/p0137r1 (std::launder) as Complete in Clang/libc++ 6.0, but I didn't see a corresponding compiler builtin documented at https://clang.llvm.org/docs/LanguageExtensions.html .

I'm assuming that such a builtin was implemented - can it be documented (or can someone tell me what it's spelled) so I can request C1XX and EDG support for the same builtin?

Thanks,
STL
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Compiler builtin for std::launder

Eric Fiselier via cfe-dev
On 12 December 2017 at 00:42, Stephan T. Lavavej via cfe-dev
<[hidden email]> wrote:

> https://libcxx.llvm.org/cxx1z_status.html lists https://wg21.link/p0137r1 (std::launder) as Complete in Clang/libc++ 6.0, but I didn't see a corresponding compiler builtin documented at https://clang.llvm.org/docs/LanguageExtensions.html .
>
> I'm assuming that such a builtin was implemented - can it be documented (or can someone tell me what it's spelled) so I can request C1XX and EDG support for the same builtin?

It's spelt __builtin_launder.  See https://reviews.llvm.org/D40218

--
Malcolm Parsons
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev