Fix ASAN bot; missing bookkeeping in r240136.
authorMarshall Clow <mclow.lists@gmail.com>
Fri, 19 Jun 2015 17:13:59 +0000 (17:13 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Fri, 19 Jun 2015 17:13:59 +0000 (17:13 +0000)
llvm-svn: 240139

libcxx/include/memory

index 4c3a18c..7763c19 100644 (file)
@@ -4076,6 +4076,7 @@ private:
             {
                 __e->__weak_this_.__ptr_ = const_cast<_Yp*>(static_cast<const _Yp*>(__e));
                 __e->__weak_this_.__cntrl_ = __cntrl_;
+                __cntrl_->__add_weak();
             }
         }