BumpPtrAllocator: remove 'no slabs allocated yet' check
[oota-llvm.git] / include / llvm / Support / Allocator.h
index 7a7e4c0a13e2ee1f5052f619a7f69ac50d3991e0..f39fd10b0245708b8c5666b601c717ada6c4fe97 100644 (file)
@@ -201,9 +201,6 @@ public:
 
   /// \brief Allocate space at the specified alignment.
   void *Allocate(size_t Size, size_t Alignment) {
-    if (!CurPtr) // Start a new slab if we haven't allocated one already.
-      StartNewSlab();
-
     // Keep track of how many bytes we've allocated.
     BytesAllocated += Size;