summarylogtreecommitdiffstats
path: root/gcc5.patch
blob: 7cb2817561c1295cf07fe7e905471e48d753567b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: include/llvm/ADT/IntrusiveRefCntPtr.h
===================================================================
--- include/llvm/ADT/IntrusiveRefCntPtr.h	(revision 218294)
+++ include/llvm/ADT/IntrusiveRefCntPtr.h	(revision 218295)
@@ -197,6 +197,9 @@
   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>