Fix static initialization of std::atomic_flag; Fixes PR#37226. Thanks to Ricky Zhou for the report and test case.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@330828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1741,7 +1741,7 @@ typedef struct atomic_flag
|
||||
atomic_flag() _NOEXCEPT : __a_() {}
|
||||
#endif // _LIBCPP_CXX03_LANG
|
||||
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
|
||||
atomic_flag(bool __b) _NOEXCEPT : __a_(__b) {} // EXTENSION
|
||||
|
||||
#ifndef _LIBCPP_CXX03_LANG
|
||||
|
||||
Reference in New Issue
Block a user