[llvm-commits] [PATCH] Fix leaks in LLVMContext!
edwintorok at gmail.com
Sun Aug 30 13:01:40 PDT 2009
On 2009-08-28 16:24, Török Edwin wrote:
> Now that all the ManagedStatic constants are in LLVMContext, we can
> delete the constants when the LLVMContext is destroyed, and we
> can control the destruction order by doing that in ~LLVMContextImpl.
> Attached are 2 patches that fix leaks, it passed make check for me
> (didn't check llvm-gcc yet).
llvm-gcc needs the attached tiny patch (to free TheModule),
otherwise it tries to destroy a constant that is still used by a GV, and
an assertion fails.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 383 bytes
Desc: not available
More information about the llvm-commits