[llvm-commits] [PATCH] Fix bug in RefCountedBaseVPTR and add regression tests for some of the latest changes

Manuel Klimek klimek at google.com
Tue Jan 31 04:09:30 PST 2012


RefCountedBaseVPTR needs the IntrusiveRefCntPtrInfo as friend, now
that this handles the release / retain calls.

Adds a regression test for that bug (which is a compile-time
regression) and for the last two changes to the IntrusiveRefCntPtr,
especially tests for the memory leak due to copy construction of the
ref-counted object and ensuring that the traits are used for release /
retain calls.

Cheers,
/Manuel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refcount.patch
Type: text/x-patch
Size: 3070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120131/f5a5b4b1/attachment.bin>


More information about the llvm-commits mailing list