Fix PR#23647 - make_shared<volatile bool> - second try
llvm-svn: 238370
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: a7fb9a041dbcf66e8bff5fefcbdae3fc842bfabc
diff --git a/include/memory b/include/memory
index 4af72c3..a0e7a8b 100644
--- a/include/memory
+++ b/include/memory
@@ -4047,7 +4047,7 @@
}
_LIBCPP_INLINE_VISIBILITY
- void __enable_weak_this(const void*) _NOEXCEPT {}
+ void __enable_weak_this(const volatile void*) _NOEXCEPT {}
template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY shared_ptr;
template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY weak_ptr;