summarylogtreecommitdiffstats
path: root/bug-20176-template-friend-fix.patch
diff options
context:
space:
mode:
authorMarat Kh. Akhin2015-12-14 19:47:41 +0300
committerMarat Kh. Akhin2015-12-14 19:47:41 +0300
commit6b0b0fa0ea1e6f8896bb86c9b82bc01811ee4bb4 (patch)
treeb058cec1f161948c3b4c99d6c9826ffb5f3250f9 /bug-20176-template-friend-fix.patch
parent7b745c0704737ab037e35dc7ea9b18684fe73d30 (diff)
downloadaur-6b0b0fa0ea1e6f8896bb86c9b82bc01811ee4bb4.tar.gz
Adapted to latest build environment
Diffstat (limited to 'bug-20176-template-friend-fix.patch')
-rw-r--r--bug-20176-template-friend-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/bug-20176-template-friend-fix.patch b/bug-20176-template-friend-fix.patch
new file mode 100644
index 000000000000..63aa295a2990
--- /dev/null
+++ b/bug-20176-template-friend-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/include/llvm/ADT/IntrusiveRefCntPtr.h b/include/llvm/ADT/IntrusiveRefCntPtr.h
+--- a/include/llvm/ADT/IntrusiveRefCntPtr.h
++++ b/include/llvm/ADT/IntrusiveRefCntPtr.h
+@@ -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>