Fix __hash_table::max_size() on 32 bit systems
llvm-svn: 287749
diff --git a/libcxx/include/__hash_table b/libcxx/include/__hash_table
index 0dc188b..2653afb 100644
--- a/libcxx/include/__hash_table
+++ b/libcxx/include/__hash_table
@@ -1005,8 +1005,7 @@
size_type max_size() const _NOEXCEPT
{
return std::min<size_type>(
- allocator_traits<__pointer_allocator>::max_size(
- __bucket_list_.get_deleter().__alloc()),
+ __node_traits::max_size(__node_alloc()),
numeric_limits<difference_type >::max()
);
}