[all-commits] [llvm/llvm-project] 7c8102: [libc++] Remove workarounds for missing __builtin_...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Aug 11 14:06:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c81024a06d6ab5c3743ab3fb494d172fd308e49
      https://github.com/llvm/llvm-project/commit/7c81024a06d6ab5c3743ab3fb494d172fd308e49
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-08-11 (Wed, 11 Aug 2021)

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

  Log Message:
  -----------
  [libc++] Remove workarounds for missing __builtin_addressof

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.

Differential Revision: https://reviews.llvm.org/D107905




More information about the All-commits mailing list