Skip to content
Commit aae63a0c authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

[BumpPtrAllocator] Move DefaultSlabAllocator to a member of BumpPtrAllocator,...

[BumpPtrAllocator] Move DefaultSlabAllocator to a member of BumpPtrAllocator, instead of a static variable.

The problem with having DefaultSlabAllocator being a global static is that it is undefined if BumpPtrAllocator
will be usable during global initialization because it is not guaranteed that DefaultSlabAllocator will be
initialized before BumpPtrAllocator is created and used.

llvm-svn: 189433
parent 9bfa2e2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment