BumpPtrAllocator: Make sure threshold cannot be initialized with a value smaller...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 1 Mar 2012 22:10:16 +0000 (22:10 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 1 Mar 2012 22:10:16 +0000 (22:10 +0000)
commit97e910ecff5ed8b653a07fb1d014dab772931c0b
tree613e515bf78755771a49ce3602727573bccd7938
parentb4d023503b40b45fd11835f1697a17e23f958af3
BumpPtrAllocator: Make sure threshold cannot be initialized with a value smaller than the slab size.

This replaces r151834 with a simpler fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151842 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Allocator.cpp
unittests/Support/AllocatorTest.cpp