BumpPtrAllocator: remove 'no slabs allocated yet' check
[oota-llvm.git] / unittests / Support / AllocatorTest.cpp
index 0fc84c7613f30cb715d9c83fc3597e3a6248fcb7..dc92ff9ef038c7920e72235b4afd768e99bb64b3 100644 (file)
@@ -112,7 +112,7 @@ TEST(AllocatorTest, TestSmallSlabSize) {
   BumpPtrAllocator Alloc;
 
   Alloc.Allocate(8000, 0);
-  EXPECT_EQ(2U, Alloc.GetNumSlabs());
+  EXPECT_EQ(1U, Alloc.GetNumSlabs());
 }
 
 // Mock slab allocator that returns slabs aligned on 4096 bytes.  There is no