[libcxx-commits] [PATCH] D107905: [libc++] Remove workarounds for missing __builtin_addressof

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 11 07:36:53 PDT 2021


ldionne created this revision.
Herald added a subscriber: arichardson.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

All supported compilers implement __builtin_addressof. Even MSVC implements
addressof as a simple call to __builtin_addressof, so it would work if we
were to port libc++ to that compiler.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107905

Files:
  libcxx/include/__config
  libcxx/include/__memory/addressof.h
  libcxx/include/optional
  libcxx/include/type_traits
  libcxx/include/version
  libcxx/test/libcxx/utilities/meta/meta.unary/meta.unary.prop/__has_operator_addressof.pass.cpp
  libcxx/test/std/language.support/support.limits/support.limits.general/memory.version.pass.cpp
  libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
  libcxx/utils/generate_feature_test_macro_components.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107905.365756.patch
Type: text/x-patch
Size: 13634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210811/942d74b2/attachment.bin>


More information about the libcxx-commits mailing list