]> granicus.if.org Git - llvm/commit
ADT: IntrusiveRefCntPtr: Broaden the definition of correct usage of RefCountedBase
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 4 Jan 2017 18:57:31 +0000 (18:57 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 4 Jan 2017 18:57:31 +0000 (18:57 +0000)
commitd4b95bb307b0a50942548f447709bff1f6a526f9
tree698328fc0c8f89ee2f19e547fbce30a5e3f73d8c
parent6aec022dd76ba42b197067d20d5cf2d5fe687518
ADT: IntrusiveRefCntPtr: Broaden the definition of correct usage of RefCountedBase

This roughly matches the semantics of std::enable_shared_from_this - that it
does not dictate the ownership model of all users, but constrains those users
taking advantage of the intrusive nature to do so only when there's a guarantee
that that's the ownership model being used for the object being passed.

Reviewers: jlebar

Differential Revision: https://reviews.llvm.org/D28245

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290987 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/IntrusiveRefCntPtr.h