[PATCH] BumpPtr allocate SimpleReferences

Jean-Daniel Dupas mailing at xenonium.com
Thu Dec 4 00:51:34 PST 2014


>>! In D6518#7, @shankarke wrote:
> 
> This would essentially destroy all the references when the File goes away, Am I missing something ?

Yes, you miss the memory allocated by the vector to store the pointers themselves. The problem is that whatever you store in the vector, it need to allocate storage, and as the vector destructor is never called, that memory will leaks.

http://reviews.llvm.org/D6518






More information about the llvm-commits mailing list