- Add llvm-fix-intrusiverefcntptr.patch to fix build of LLVM tools with GCC 5. - Add llvm-fix-find-gcc5-install.patch to properly find installed GCC 5. OBS-URL: https://build.opensuse.org/request/show/286987 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=398
15 lines
565 B
Diff
15 lines
565 B
Diff
Index: include/llvm/ADT/IntrusiveRefCntPtr.h
|
|
===================================================================
|
|
--- include/llvm/ADT/IntrusiveRefCntPtr.h.orig 2014-07-06 00:20:59.000000000 +0200
|
|
+++ include/llvm/ADT/IntrusiveRefCntPtr.h 2015-02-20 14:05:08.687151938 +0100
|
|
@@ -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>
|