summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/src/memory.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/libcxx/src/memory.cpp b/libcxx/src/memory.cpp
index 1c1b438540a..a892e75c86d 100644
--- a/libcxx/src/memory.cpp
+++ b/libcxx/src/memory.cpp
@@ -100,10 +100,7 @@ __shared_weak_count::lock() _NOEXCEPT
if (__sync_bool_compare_and_swap(&__shared_owners_,
object_owners,
object_owners+1))
- {
- __add_weak();
return this;
- }
object_owners = __shared_owners_;
}
return 0;
OpenPOWER on IntegriCloud