Limit DenseMap::setNumEntries input to 1<<31, in accordance with the 31 bits allocate...
authorYaron Keren <yaron.keren@gmail.com>
Sat, 13 Aug 2016 19:46:31 +0000 (19:46 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sat, 13 Aug 2016 19:46:31 +0000 (19:46 +0000)
commit782788b7a126d5c5a75c8b1e13d8fca873ea1a9e
tree12e1c65e179a19b7493d21b484c870b062f61fe8
parent7079efe1cedc72e4618a2914a9c9daae81c47268
Limit DenseMap::setNumEntries input to 1<<31, in accordance with the 31 bits allocated to NumEntries.
std::numeric_limits<int>::max() may be something else than 1<<31.

llvm-svn: 278602
llvm/include/llvm/ADT/DenseMap.h