[all-commits] [llvm/llvm-project] fe0e86: [libc++] Rewrite std::to_address to avoid relying ...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu May 6 07:15:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe0e86e6026f79e0b18f877196fbddd1d9e140d8
      https://github.com/llvm/llvm-project/commit/fe0e86e6026f79e0b18f877196fbddd1d9e140d8
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M libcxx/include/__memory/pointer_traits.h
    M libcxx/include/iterator
    A libcxx/test/libcxx/utilities/memory/pointer.conversion/to_address.pass.cpp
    A libcxx/test/libcxx/utilities/memory/pointer.conversion/to_address_std_iterators.pass.cpp
    M libcxx/test/std/utilities/memory/pointer.conversion/to_address.pass.cpp
    A libcxx/test/std/utilities/memory/pointer.conversion/to_address_std_iterators.pass.cpp

  Log Message:
  -----------
  [libc++] Rewrite std::to_address to avoid relying on element_type

This is a rough reapplication of the change that fixed std::to_address
to avoid relying on element_type (da456167). It is somewhat different
because the fix to avoid breaking Clang (which caused it to be reverted
in 347f69c55) was a bit more involved.

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




More information about the All-commits mailing list