[cfe-dev] CountMap or CountMap::Factory

Zhongxing Xu mymlreader at gmail.com
Sun Mar 2 22:06:58 PST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080303/308fa86d/attachment.html>


More information about the cfe-dev mailing list