[llvm-commits] [PATCH] Do not attempt to destroy AttributesListImpl if already destroyed
Owen Anderson
resistor at me.com
Thu Nov 18 11:01:31 PST 2010
Applied in r119721. Thanks!
--Owen
On Nov 13, 2010, at 3:01 PM, Peter Collingbourne wrote:
> Hi,
>
> During static deinitialization, it is possible for AttributesLists to
> be destroyed before GlobalContext. This will cause the AttrListPtrs
> held by Function and various Instruction subclasses to be invalidated.
> Later when GlobalContext is destroyed the AttributesListImpls referred
> to by the AttrListPtrs will be deleted, causing memory errors.
> This patch causes AttributesListImpl to skip deinitialization via
> DropRef if AttributesLists has been destroyed.
>
> OK to commit?
>
> Thanks,
> --
> Peter
> <0001-Do-not-attempt-to-destroy-AttributesListImpl-if-alre.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101118/4a3498d7/attachment.html>
More information about the llvm-commits
mailing list