CountMap or CountMap::Factory

In file GRBlockCounter.cpp:

GRBlockCounter::factory::Factory(llvm::BumpPtrAllocator& Alloc) {
F = new CountMap::Factory(Alloc);
}

GRBlockCounter::factory::~Factory() {
delete static_cast<CountMap*>(F);
}

Should the dtor cast F to CountMap::Factory?

Zhongxing Xu

Hi Zhongxing,

You are absolutely correct. This is a bug. Fixed!

Thanks so much.
Ted