[llvm-commits] [PATCH] Fix leaks in LLVMContext!

Török Edwin edwintorok at gmail.com
Sun Aug 30 13:01:40 PDT 2009


On 2009-08-28 16:24, Török Edwin wrote:
> Hi,
>
> 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.

Best regards,
--Edwin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-gcc.patch
Type: text/x-diff
Size: 383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090830/1cd85701/attachment.patch>


More information about the llvm-commits mailing list