------------------------------------------------------------------------ r218295 | akirtzidis | 2014-09-23 08:06:43 +0200 (Tue, 23 Sep 2014) | 2 lines [ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr so the relevant move constructor can access 'Obj'. ------------------------------------------------------------------------ Index: include/llvm/ADT/IntrusiveRefCntPtr.h =================================================================== --- include/llvm/ADT/IntrusiveRefCntPtr.h (revision 218294) +++ include/llvm/ADT/IntrusiveRefCntPtr.h (revision 218295) @@ -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