[Allocator] Lift the slab size and size threshold into template
[oota-llvm.git] / unittests / Support / AllocatorTest.cpp
index 4cd0163f2ffaeb7b737dff4c06107141a9051a1d..bcf6bf1c71dd0267380b0e97f7311be0642f6440 100644 (file)
@@ -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);