Use std::call_once on Windows
Previously we could not use it because std::once_flag's default constructor was not constexpr. Today, all supported versions of VS correctly mark it constexpr. I confirmed that MSVC 2015 does not emit any problematic racy dynamic initialization code, so we should be safe to use this now. llvm-svn: 295013
Loading
Please register or sign in to comment