summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-09-23 06:06:43 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-09-23 06:06:43 +0000
commita170697b18c3667a6ea70ea27246e69e202ba3a4 (patch)
treea2958ac74e44247b9d0ff2862b4946d5de05dd95 /llvm
parentdf1e9ff75e53608cefe8330752fa3cc8091d7e26 (diff)
downloadbcm5719-llvm-a170697b18c3667a6ea70ea27246e69e202ba3a4.tar.gz
bcm5719-llvm-a170697b18c3667a6ea70ea27246e69e202ba3a4.zip
[ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr<X> so the relevant move constructor can access 'Obj'.
llvm-svn: 218295
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/IntrusiveRefCntPtr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h b/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h
index f9df3781257..c859c98d06b 100644
--- a/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h
+++ b/llvm/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>
OpenPOWER on IntegriCloud