diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-30 21:10:16 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-30 21:10:16 +0000 |
commit | aa41ea2cc1c509b21fd99a4f1dc22d2243906cf5 (patch) | |
tree | 3007f07b506bdc8269d6fe23bb6348ad3dfe2d1c /libcxx/include | |
parent | 582ae9916ae565811b9ca7d8e6ebe91e7cdb442a (diff) | |
download | bcm5719-llvm-aa41ea2cc1c509b21fd99a4f1dc22d2243906cf5.tar.gz bcm5719-llvm-aa41ea2cc1c509b21fd99a4f1dc22d2243906cf5.zip |
Revert r136546, which was submitted without review.
Original change:
Destruct elements of hash tables when removing individual entries from
the hash_table. I think this is the correct solution to PR10507, but I'm
not sure since this is a little bit cargo-culted. Howard, please review.
llvm-svn: 136576
Diffstat (limited to 'libcxx/include')
-rw-r--r-- | libcxx/include/__hash_table | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libcxx/include/__hash_table b/libcxx/include/__hash_table index 2bd9597768d..d469b0808d0 100644 --- a/libcxx/include/__hash_table +++ b/libcxx/include/__hash_table @@ -1726,7 +1726,6 @@ template <class _Tp, class _Hash, class _Equal, class _Alloc> typename __hash_table<_Tp, _Hash, _Equal, _Alloc>::__node_holder __hash_table<_Tp, _Hash, _Equal, _Alloc>::remove(const_iterator __p) _NOEXCEPT { - __node_traits::destroy(__node_alloc(), __p.operator->()); // current node __node_pointer __cn = const_cast<__node_pointer>(__p.__node_); size_type __bc = bucket_count(); |