[LLVMdev] Bug in Support/Allocator.h

Kal b17c0de at gmail.com
Mon May 11 08:25:45 PDT 2015


Hi,
llvm::BumpPtrAllocatorImpl::Reset() looks like it has a bug.

There is this check at the top:
     if (Slabs.empty())
       return;

But what if you don't have any normal Slabs allocated but only 
CustomSizedSlabs.

I think this should be:

     if (Slabs.empty() && CustomSizedSlabs.empty())
       return;




More information about the llvm-dev mailing list