[all-commits] [llvm/llvm-project] 7adf71: [libc++] Change forward_list::swap to use propagat...

Hyundeok Park via All-commits all-commits at lists.llvm.org
Tue Jun 22 09:42:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7adf713a5e22b44c7cc746bcd379d844277a19f2
      https://github.com/llvm/llvm-project/commit/7adf713a5e22b44c7cc746bcd379d844277a19f2
  Author: Hyundeok Park <p.hyundeok76 at gmail.com>
  Date:   2021-06-22 (Tue, 22 Jun 2021)

  Changed paths:
    M libcxx/include/forward_list

  Log Message:
  -----------
  [libc++] Change forward_list::swap to use propagate_on_container_swap for noexcept specification

The current implementation of `std::forward_list::swap` uses
`propagate_on_container_move_assignment` for `noexcept` specification.
This patch changes it to use `propagate_on_container_swap`, as it should.

Fixes https://llvm.org/PR50224.

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




More information about the All-commits mailing list