[Support] Fix a race initializing a static local in MSVC
static local initialization isn't thread safe with MSVC and a race was reported in PR23817. We can't use std::atomic because it's not trivially constructible, so instead do some lame volatile global integer manipulation. llvm-svn: 239566
Loading
Please register or sign in to comment