ports/devel/llvm35/files/patch-svn-218295
Mathieu Arnold aa1ca03dda Remove svn keywords from patches.
Sponsored by:	Absolight
2017-05-15 15:38:56 +00:00

20 lines
870 B
Text

------------------------------------------------------------------------
r218295 | akirtzidis | 2014-09-23 08:06:43 +0200 (Tue, 23 Sep 2014) | 2 lines
[ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr<X> 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<T>::retain(Obj); }
void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
+
+ template <typename X>
+ friend class IntrusiveRefCntPtr;
};
template<class T, class U>