[cfe-commits] [libcxx] r136575 - /libcxx/branches/apple/include/__hash_table

Howard Hinnant hhinnant at apple.com
Sat Jul 30 10:40:17 PDT 2011


Author: hhinnant
Date: Sat Jul 30 12:40:17 2011
New Revision: 136575

URL: http://llvm.org/viewvc/llvm-project?rev=136575&view=rev
Log:
Fix PR10507. http://llvm.org/bugs/show_bug.cgi?id=10507

Modified:
    libcxx/branches/apple/include/__hash_table

Modified: libcxx/branches/apple/include/__hash_table
URL: http://llvm.org/viewvc/llvm-project/libcxx/branches/apple/include/__hash_table?rev=136575&r1=136574&r2=136575&view=diff
==============================================================================
--- libcxx/branches/apple/include/__hash_table (original)
+++ libcxx/branches/apple/include/__hash_table Sat Jul 30 12:40:17 2011
@@ -432,9 +432,10 @@
     bool __value_constructed;
 
     _LIBCPP_INLINE_VISIBILITY
-    explicit __hash_node_destructor(allocator_type& __na) _NOEXCEPT
+    explicit __hash_node_destructor(allocator_type& __na,
+                                    bool __constructed = false) _NOEXCEPT
         : __na_(__na),
-          __value_constructed(false)
+          __value_constructed(__constructed)
         {}
 
     _LIBCPP_INLINE_VISIBILITY
@@ -1753,7 +1754,7 @@
     __pn->__next_ = __cn->__next_;
     __cn->__next_ = nullptr;
     --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>





More information about the cfe-commits mailing list