diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-06-11 22:22:45 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-06-11 22:22:45 +0000 |
commit | 6bb26dafa4cda63c14da97e65eff1e982375fd16 (patch) | |
tree | fdf1733dc07557a01ec5907ebb716e2ad1baa1eb /llvm/lib/Support/Windows/Program.inc | |
parent | c4e4f33e290ba21f97a871828ee2d1d39a620058 (diff) | |
download | bcm5719-llvm-6bb26dafa4cda63c14da97e65eff1e982375fd16.tar.gz bcm5719-llvm-6bb26dafa4cda63c14da97e65eff1e982375fd16.zip |
[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
Diffstat (limited to 'llvm/lib/Support/Windows/Program.inc')
0 files changed, 0 insertions, 0 deletions