Skip to content

Commit ccc9292

Browse files
fix eager reduction...
1 parent 3ded535 commit ccc9292

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/include/__hash_table

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,10 +1884,11 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::__construct_node(_Args&&... __args) {
18841884
// We don't use the allocator's construct() method to construct the node itself since the
18851885
// Cpp17FooInsertable named requirements don't require the allocator's construct() method
18861886
// to work on anything other than the value_type.
1887-
std::__construct_at(std::addressof(*__h), /* hash = */ hash_function()(__h->__get_value()), __na, std::forward<_Args>(__args)...);
1887+
std::__construct_at(std::addressof(*__h), /* hash = */ 0, __na, std::forward<_Args>(__args)...);
18881888

18891889
__h.get_deleter().__value_constructed = true;
18901890

1891+
__h->__hash_ = hash_function()(__h->__get_value());
18911892
return __h;
18921893
}
18931894

0 commit comments

Comments
 (0)