[libcxx-commits] [libcxx] [libc++] Remove _LIBCPP_COMPRESSED_PAIR/TRIPLE from shared_ptr (PR #200401)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 3 08:03:52 PDT 2026
================
@@ -110,17 +108,14 @@ class __shared_ptr_pointer : public __shared_weak_count {
private:
_LIBCPP_HIDE_FROM_ABI_VIRTUAL void __on_zero_shared() _NOEXCEPT override {
__deleter_(__ptr_);
+ __ptr_.~_Tp();
----------------
ldionne wrote:
Let's write a test for this. I think this is a pre-existing bug, right?
https://github.com/llvm/llvm-project/pull/200401
More information about the libcxx-commits
mailing list