mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2025-02-17 10:27:39 +00:00
Fixed PR10507 (http://llvm.org/bugs/show_bug.cgi?id=10507)
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@136595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d7530935d
commit
199d0aec1b
@ -432,9 +432,10 @@ public:
|
|||||||
bool __value_constructed;
|
bool __value_constructed;
|
||||||
|
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit __hash_node_destructor(allocator_type& __na) _NOEXCEPT
|
explicit __hash_node_destructor(allocator_type& __na,
|
||||||
|
bool __constructed = false) _NOEXCEPT
|
||||||
: __na_(__na),
|
: __na_(__na),
|
||||||
__value_constructed(false)
|
__value_constructed(__constructed)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
@ -1753,7 +1754,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::remove(const_iterator __p) _NOEXCEPT
|
|||||||
__pn->__next_ = __cn->__next_;
|
__pn->__next_ = __cn->__next_;
|
||||||
__cn->__next_ = nullptr;
|
__cn->__next_ = nullptr;
|
||||||
--size();
|
--size();
|
||||||
return __node_holder(__cn, _D(__node_alloc()));
|
return __node_holder(__cn, _D(__node_alloc(), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class _Hash, class _Equal, class _Alloc>
|
template <class _Tp, class _Hash, class _Equal, class _Alloc>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user