- IntrusiveRefCntPtr& operator=(const IntrusiveRefCntPtr& S) {
- replace(S.getPtr());
- return *this;
- }
-
-#if LLVM_USE_RVALUE_REFERENCES
- IntrusiveRefCntPtr& operator=(IntrusiveRefCntPtr&& S) {
- Obj = S.Obj;
- S.Obj = 0;
- return *this;
- }
-
- template <class X>
- IntrusiveRefCntPtr& operator=(IntrusiveRefCntPtr<X>&& S) {
- Obj = S.getPtr();
- S.Obj = 0;
- return *this;
- }
-#endif
-
- template <class X>
- IntrusiveRefCntPtr& operator=(const IntrusiveRefCntPtr<X>& S) {
- replace(S.getPtr());
- return *this;
- }
-
- IntrusiveRefCntPtr& operator=(T * S) {
- replace(S);