summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-30 12:07:07 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-30 12:07:07 +0000
commit368a97729890a878389a9995e426c1042947f37a (patch)
tree1b123939a0636aa3d3c485402112960290aa67f1 /unittests
parent0331a894cdf46d8186e74cf855dab19775695adc (diff)
downloadllvm-368a97729890a878389a9995e426c1042947f37a.tar.gz
llvm-368a97729890a878389a9995e426c1042947f37a.tar.bz2
llvm-368a97729890a878389a9995e426c1042947f37a.tar.xz
[Allocator] Lift the slab size and size threshold into template
parameters rather than runtime parameters. There is only one user of these parameters and they are compile time for that user. Making these compile time seems to better reflect their intended usage as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/AllocatorTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/AllocatorTest.cpp b/unittests/Support/AllocatorTest.cpp
index 4cd0163f2f..bcf6bf1c71 100644
--- a/unittests/Support/AllocatorTest.cpp
+++ b/unittests/Support/AllocatorTest.cpp
@@ -141,7 +141,7 @@ public:
// will not.
TEST(AllocatorTest, TestBigAlignment) {
MockSlabAllocator SlabAlloc;
- BumpPtrAllocator Alloc(4096, 4096, SlabAlloc);
+ BumpPtrAllocator Alloc(SlabAlloc);
uintptr_t Ptr = (uintptr_t)Alloc.Allocate(3000, 2048);
MemSlab *Slab = SlabAlloc.GetLastSlab();
EXPECT_LE(Ptr + 3000, ((uintptr_t)Slab) + Slab->Size);