[all-commits] [llvm/llvm-project] e137fb: [clang][libcxx] renames `__remove_reference`

Christopher Di Bella via All-commits all-commits at lists.llvm.org
Mon Aug 22 16:16:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e137fb6fb85b41978814e64eae652d05688bcca5
      https://github.com/llvm/llvm-project/commit/e137fb6fb85b41978814e64eae652d05688bcca5
  Author: Christopher Di Bella <cjdb at google.com>
  Date:   2022-08-22 (Mon, 22 Aug 2022)

  Changed paths:
    M clang/include/clang/Basic/TransformTypeTraits.def
    M clang/test/CodeGenCXX/mangle.cpp
    M clang/test/SemaCXX/libstdcxx_transform_type_traits_hack.cpp
    M clang/test/SemaCXX/type-traits.cpp
    M libcxx/include/__type_traits/remove_reference.h

  Log Message:
  -----------
  [clang][libcxx] renames `__remove_reference`

libc++ prior to LLVM 15 has a bug in it due to it excluding
`remove_reference_t` when `__remove_reference` is available as a
compiler built-in. This went unnoticed until D116203 because it wasn't
available in any compiler.

To work around this, we're renaming `__remove_reference` to
`__remove_reference_t`.

TEST=Tested locally, tested using emscripten




More information about the All-commits mailing list