[all-commits] [llvm/llvm-project] 8ce0fb: [libc++][NFC] Reduce use of `__add_lvalue_referenc...

A. Jiang via All-commits all-commits at lists.llvm.org
Wed Oct 16 06:32:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ce0fb86d3acc066a16637ea5c5691da984707a7
      https://github.com/llvm/llvm-project/commit/8ce0fb86d3acc066a16637ea5c5691da984707a7
  Author: A. Jiang <de34 at live.cn>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M libcxx/include/__split_buffer
    M libcxx/include/future

  Log Message:
  -----------
  [libc++][NFC] Reduce use of `__add_lvalue_reference_t` (#112497)

Currently, the occurrences of `__add_lvalue_reference_t` in
`__split_buffer` and `__assoc_state` are probably meaningless.

* In `__split_buffer`, the `__alloc_ref` and `__alloc_const_ref` member
  typedefs are no longer used.
* In `__assoc_state`, we should simply use `_Rp&`, which must be
  well-formed since it's already required that `sizeof(_Rp)` is
  well-formed.

This PR removes the meaningless usages. The remaining occurrences in
`shared_ptr`, `unique_ptr`, and several type traits are meaningful.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list