View | Details | Raw Unified | Return to bug 217236
Collapse All | Expand All

(-)devel/llvm35/files/patch-svn-218295 (+21 lines)
Line 0 Link Here
1
$FreeBSD$
2
------------------------------------------------------------------------
3
r218295 | akirtzidis | 2014-09-23 08:06:43 +0200 (Tue, 23 Sep 2014) | 2 lines
4
5
[ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr<X> so the relevant move constructor can access 'Obj'.
6
7
------------------------------------------------------------------------
8
Index: include/llvm/ADT/IntrusiveRefCntPtr.h
9
===================================================================
10
--- include/llvm/ADT/IntrusiveRefCntPtr.h	(revision 218294)
11
+++ include/llvm/ADT/IntrusiveRefCntPtr.h	(revision 218295)
12
@@ -197,6 +197,9 @@ public:
13
   private:
14
     void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
15
     void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
16
+
17
+    template <typename X>
18
+    friend class IntrusiveRefCntPtr;
19
   };
20
 
21
   template<class T, class U>
(-)lang/clang35/Makefile (-4 lines)
Lines 85-94 RELTYPE= Release Link Here
85
85
86
.include <bsd.port.pre.mk>
86
.include <bsd.port.pre.mk>
87
87
88
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1200017 && ${CHOSEN_COMPILER_TYPE} == "clang"
89
BROKEN=	Base clang produces compiler errors
90
.endif
91
92
# keep in sync with /usr/src/lib/clang/clang.build.mk
88
# keep in sync with /usr/src/lib/clang/clang.build.mk
93
CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/armv6hf/armv6/}-portbld-${OPSYS:tl}${OSREL}
89
CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/armv6hf/armv6/}-portbld-${OPSYS:tl}${OSREL}
94
90
(-)lang/clang35/files/patch-svn-218295 (+21 lines)
Line 0 Link Here
1
$FreeBSD$
2
------------------------------------------------------------------------
3
r218295 | akirtzidis | 2014-09-23 08:06:43 +0200 (Tue, 23 Sep 2014) | 2 lines
4
5
[ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr<X> so the relevant move constructor can access 'Obj'.
6
7
------------------------------------------------------------------------
8
Index: include/llvm/ADT/IntrusiveRefCntPtr.h
9
===================================================================
10
--- include/llvm/ADT/IntrusiveRefCntPtr.h	(revision 218294)
11
+++ include/llvm/ADT/IntrusiveRefCntPtr.h	(revision 218295)
12
@@ -197,6 +197,9 @@ public:
13
   private:
14
     void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
15
     void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
16
+
17
+    template <typename X>
18
+    friend class IntrusiveRefCntPtr;
19
   };
20
 
21
   template<class T, class U>

Return to bug 217236