[libcxx-commits] [libcxx] [libc++] Inline fast path for`exception_ptr` copy constructor & destructor (PR #165909)

Adrian Vogelsgesang via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 10 04:31:10 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_); }
----------------
vogelsgesang wrote:

👍 I will keep this in mind and keep this issue open until immediately before merging this PR, so I won't forget

https://github.com/llvm/llvm-project/pull/165909


More information about the libcxx-commits mailing list