diff options
Diffstat (limited to 'lib/Support/Allocator.cpp')
-rw-r--r-- | lib/Support/Allocator.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Support/Allocator.cpp b/lib/Support/Allocator.cpp index 19d69f6f94..31b45c8d4a 100644 --- a/lib/Support/Allocator.cpp +++ b/lib/Support/Allocator.cpp @@ -142,10 +142,8 @@ void BumpPtrAllocator::PrintStats() const { << " (includes alignment, etc)\n"; } -MallocSlabAllocator &BumpPtrAllocator::GetDefaultSlabAllocator() { - static MallocSlabAllocator DefaultSlabAllocator; - return DefaultSlabAllocator; -} +MallocSlabAllocator BumpPtrAllocator::DefaultSlabAllocator = + MallocSlabAllocator(); SlabAllocator::~SlabAllocator() { } |