Skip to content

Commit

Permalink
[ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr<X> …
Browse files Browse the repository at this point in the history
…so the relevant move constructor can access 'Obj'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218295 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
akyrtzi committed Sep 23, 2014
1 parent 66e6cd2 commit 72bffaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/llvm/ADT/IntrusiveRefCntPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ class ThreadSafeRefCountedBase {
private:
void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }

template <typename X>
friend class IntrusiveRefCntPtr;
};

template<class T, class U>
Expand Down

0 comments on commit 72bffaa

Please sign in to comment.