summaryrefslogtreecommitdiffstats
path: root/devel/llvm35/files/patch-svn-218295
blob: 4bc738d4926f2d7a27f64976219ed9a1d6bc4551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$FreeBSD$
------------------------------------------------------------------------
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>
OpenPOWER on IntegriCloud