[libc++] Use the no_destroy attribute to avoid destroying debug DB statics
authorLouis Dionne <ldionne@apple.com>
Wed, 17 Apr 2019 18:20:19 +0000 (18:20 +0000)
committerLouis Dionne <ldionne@apple.com>
Wed, 17 Apr 2019 18:20:19 +0000 (18:20 +0000)
commit81875a67b0d1bd43cca96b5e321a4af06b9299cd
treeef6b15900dc630a0ac388a3fb63f74a4dadfd61d
parent05a358cdcd55d1ee0a0d92383aa49489479c6362
[libc++] Use the no_destroy attribute to avoid destroying debug DB statics

Summary:
Otherwise, we can run into problems when the program has static variables
that need to use the debug database during their deinitialization, if
the debug DB has already been deinitialized.

Reviewers: EricWF

Subscribers: christof, jkorous, dexonsmith, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D60830

llvm-svn: 358602
libcxx/include/__config
libcxx/src/debug.cpp