[libcxx-commits] [libcxx] [libcxx] Poison memory in variant destroy (PR #101048)
Chris Cotter via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 29 07:01:12 PDT 2024
ccotter wrote:
I don't think there is a destructor to call in this case as the type is trivial, so I didn't think that it was semantically correct to call the dtor in this case, unless you think it's appropriate even for the trivial case (although I'd be happy to try that if that's your preference). The destructor for the `_Trait::_Available` case below does call the underlying object's destructor, and MSAN understands that.
https://github.com/llvm/llvm-project/pull/101048
More information about the libcxx-commits
mailing list