[all-commits] [llvm/llvm-project] ada2a8: Remove the try/catch codepath if `swap` is `noexce...

Michael Park via All-commits all-commits at lists.llvm.org
Tue Jun 16 14:51:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ada2a8ea4a9c5b2141c30c77b80b85945e346999
      https://github.com/llvm/llvm-project/commit/ada2a8ea4a9c5b2141c30c77b80b85945e346999
  Author: Michael Park <mcypark at gmail.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M libcxx/include/variant

  Log Message:
  -----------
  Remove the try/catch codepath if `swap` is `noexcept`.

Summary:
In the case where `swap` is `noexcept`, we should avoid the extension to provide strong-exception guarantee.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46342

Reviewers: #libc, ldionne

Reviewed By: #libc, ldionne

Subscribers: dexonsmith, mclow.lists, miscco, ldionne, zoecarver, libcxx-commits

Tags: #libc

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




More information about the All-commits mailing list