summaryrefslogtreecommitdiffstats
path: root/libcxx/src/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/src/debug.cpp')
-rw-r--r--libcxx/src/debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/debug.cpp b/libcxx/src/debug.cpp
index 93fa1a8e0d4..7fdf90c37d9 100644
--- a/libcxx/src/debug.cpp
+++ b/libcxx/src/debug.cpp
@@ -42,7 +42,7 @@ _LIBCPP_FUNC_VIS
__libcpp_db*
__get_db()
{
- static __libcpp_db db;
+ static _LIBCPP_NO_DESTROY __libcpp_db db;
return &db;
}
@@ -64,7 +64,7 @@ typedef lock_guard<mutex_type> RLock;
mutex_type&
mut()
{
- static mutex_type m;
+ static _LIBCPP_NO_DESTROY mutex_type m;
return m;
}
#endif // !_LIBCPP_HAS_NO_THREADS
OpenPOWER on IntegriCloud