[libcxx-commits] [libcxx] [libc++] Inline fast path for`exception_ptr` copy constructor & destructor (PR #165909)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 6 07:21:46 PST 2025
================
@@ -36,6 +29,21 @@ exception_ptr exception_ptr::__from_native_exception_pointer(void* __e) noexcept
return ptr;
}
+exception_ptr::~exception_ptr() noexcept { __decrement_refcount(__ptr_); }
----------------
philnik777 wrote:
Also, in case this gets landed after #166074, this should be guarded with `_LIBCPP_AVAILABILITY_MINIMUM_HEADER_VERSION < 22`. Otherwise I'll have to update that PR.
https://github.com/llvm/llvm-project/pull/165909
More information about the libcxx-commits
mailing list