[cfe-dev] Compiler builtin for std::launder

Malcolm Parsons via cfe-dev cfe-dev at lists.llvm.org
Tue Dec 12 08:33:13 PST 2017


On 12 December 2017 at 00:42, Stephan T. Lavavej via cfe-dev
<cfe-dev at lists.llvm.org> 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



More information about the cfe-dev mailing list