From: Argyrios Kyrtzidis Date: Tue, 23 Sep 2014 06:06:43 +0000 (+0000) Subject: [ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr so the relevant... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=72bffaafb407be750f29277ef049fc8a0a165637;p=oota-llvm.git [ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr 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 --- diff --git a/include/llvm/ADT/IntrusiveRefCntPtr.h b/include/llvm/ADT/IntrusiveRefCntPtr.h index f9df3781257..c859c98d06b 100644 --- a/include/llvm/ADT/IntrusiveRefCntPtr.h +++ b/include/llvm/ADT/IntrusiveRefCntPtr.h @@ -197,6 +197,9 @@ public: private: void retain() { if (Obj) IntrusiveRefCntPtrInfo::retain(Obj); } void release() { if (Obj) IntrusiveRefCntPtrInfo::release(Obj); } + + template + friend class IntrusiveRefCntPtr; }; template