HomePhabricator

Remove the try/catch codepath if `swap` is `noexcept`.

Authored by mpark on Jun 16 2020, 1:29 PM.

Description

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

Details

Committed
mparkJun 16 2020, 2:51 PM
Reviewer
Restricted Project
Differential Revision
D81954: Remove the try/catch codepath if `swap` is `noexcept`.
Parents
rGe35ba09961c8: [gicombiner] Allow generated combiners to store additional members
Branches
Unknown
Tags
Unknown