[libcxx-commits] [libcxx] [libc++] Remove UB from std::map __tree_node construction (PR #153908)
Vinay Deshmukh via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 16 06:32:04 PDT 2025
================
@@ -1416,7 +1416,7 @@ multiset<_Key, _Compare, _Allocator>::multiset(multiset&& __s, const allocator_t
if (__a != __s.get_allocator()) {
const_iterator __e = cend();
while (!__s.empty())
- insert(__e, std::move(__s.__tree_.remove(__s.begin())->__value_));
+ insert(__e, std::move(__s.__tree_.remove(__s.begin())->__get_value()));
----------------
vinay-deshmukh wrote:
This didn't show in tests before I changed it, but I _think_ this also needs to be updated as it's a result of `__tree.remove()`
https://github.com/llvm/llvm-project/pull/153908
More information about the libcxx-commits
mailing list