Temporarily revert r93581. It was causing failures in the ExecutionEngine tests
on the build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93606 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/Allocator.cpp b/lib/Support/Allocator.cpp
index 19d69f6..31b45c8 100644
--- a/lib/Support/Allocator.cpp
+++ b/lib/Support/Allocator.cpp
@@ -142,10 +142,8 @@
<< " (includes alignment, etc)\n";
}
-MallocSlabAllocator &BumpPtrAllocator::GetDefaultSlabAllocator() {
- static MallocSlabAllocator DefaultSlabAllocator;
- return DefaultSlabAllocator;
-}
+MallocSlabAllocator BumpPtrAllocator::DefaultSlabAllocator =
+ MallocSlabAllocator();
SlabAllocator::~SlabAllocator() { }