diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-09-23 06:06:43 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-09-23 06:06:43 +0000 |
commit | a170697b18c3667a6ea70ea27246e69e202ba3a4 (patch) | |
tree | a2958ac74e44247b9d0ff2862b4946d5de05dd95 /llvm | |
parent | df1e9ff75e53608cefe8330752fa3cc8091d7e26 (diff) | |
download | bcm5719-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.h | 3 |
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> |