diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2015-05-27 20:36:14 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2015-05-27 20:36:14 +0000 |
commit | 188b98b5057faa1232500289154c0ab08a11ca07 (patch) | |
tree | 51179ed60b85fb8298437d39f33f36bbb7cbfaf8 /libcxx | |
parent | 263a0f7681825915b933c5941cf772bba2e8aee2 (diff) | |
download | bcm5719-llvm-188b98b5057faa1232500289154c0ab08a11ca07.tar.gz bcm5719-llvm-188b98b5057faa1232500289154c0ab08a11ca07.zip |
Revert 238354 while I figure out what broke in weak_ptr
llvm-svn: 238355
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/include/memory | 4 | ||||
-rw-r--r-- | libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/include/memory b/libcxx/include/memory index 8dbc4cb9039..4af72c3da0f 100644 --- a/libcxx/include/memory +++ b/libcxx/include/memory @@ -4040,14 +4040,14 @@ private: template <class _Yp> _LIBCPP_INLINE_VISIBILITY void - __enable_weak_this(const volatile enable_shared_from_this<_Yp>* __e) _NOEXCEPT + __enable_weak_this(const enable_shared_from_this<_Yp>* __e) _NOEXCEPT { if (__e) __e->__weak_this_ = *this; } _LIBCPP_INLINE_VISIBILITY - void __enable_weak_this(const volatile void*) _NOEXCEPT {} + void __enable_weak_this(const void*) _NOEXCEPT {} template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY shared_ptr; template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY weak_ptr; diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp index 1045f9347b3..9cb4ff1a7b0 100644 --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp @@ -55,7 +55,7 @@ void test(const T &t0) int main() { - test<bool>(true); - test<int>(3); - test<double>(5.0); +// test<bool>(true); +// test<int>(3); +// test<double>(5.0); } |