Skip to content
  • Argyrios Kyrtzidis's avatar
    [BumpPtrAllocator] Move DefaultSlabAllocator to a member of BumpPtrAllocator,... · aae63a0c
    Argyrios Kyrtzidis authored
    [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
    aae63a0c
Loading