summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__hash_table
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-11-23 09:16:12 +0000
committerEric Fiselier <eric@efcs.ca>2016-11-23 09:16:12 +0000
commit341c9dd9c40dfc34569b615c52162aeeec5f2a68 (patch)
treeea182194996e17393e14c624f06d09420c284d31 /libcxx/include/__hash_table
parent5bdf70f41093afe86c3d413dcd6c7cd5e734f937 (diff)
downloadbcm5719-llvm-341c9dd9c40dfc34569b615c52162aeeec5f2a68.tar.gz
bcm5719-llvm-341c9dd9c40dfc34569b615c52162aeeec5f2a68.zip
Fix __hash_table::max_size() on 32 bit systems
llvm-svn: 287749
Diffstat (limited to 'libcxx/include/__hash_table')
-rw-r--r--libcxx/include/__hash_table3
1 files changed, 1 insertions, 2 deletions
diff --git a/libcxx/include/__hash_table b/libcxx/include/__hash_table
index 0dc188b7a1f..2653afb8d00 100644
--- a/libcxx/include/__hash_table
+++ b/libcxx/include/__hash_table
@@ -1005,8 +1005,7 @@ public:
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()
);
}
OpenPOWER on IntegriCloud