[llvm-commits] [PATCH] Do not attempt to destroy AttributesListImpl if already destroyed
Peter Collingbourne
peter at pcc.me.uk
Sat Nov 13 15:01:15 PST 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-not-attempt-to-destroy-AttributesListImpl-if-alre.patch
Type: text/x-diff
Size: 1837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101113/119ae563/attachment.patch>
More information about the llvm-commits
mailing list