[PATCH] BumpPtr allocate SimpleReferences

Rui Ueyama ruiu at google.com
Wed Dec 3 18:46:14 PST 2014


Why don't you make a new instance of Reference using operator new and store the pointer to File's std::vector<std::unique_ptr<Reference>>? If you do that, Reference's destructor would be called. Is there any reason to continue using BumpPtrAllocator?

http://reviews.llvm.org/D6518






More information about the llvm-commits mailing list