[PATCH] D40144: Implement `std::launder`

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 16 11:50:36 PST 2017


mclow.lists created this revision.

`std::launder` was introduced into c++17 as a compiler optimization barrier.  It's something that the compiler 'knows about', and affects codegen.

See https://wg21.link/p0137r1 for more.


https://reviews.llvm.org/D40144

Files:
  include/new
  test/std/language.support/support.dynamic/ptr.launder/launder.fail.cpp
  test/std/language.support/support.dynamic/ptr.launder/launder.pass.cpp
  www/cxx1z_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40144.123226.patch
Type: text/x-patch
Size: 4449 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171116/5629abb8/attachment-0001.bin>


More information about the cfe-commits mailing list