aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-05-22 03:45:49 +0000
committerEric Fiselier <eric@efcs.ca>2019-05-22 03:45:49 +0000
commitf8d2d87fbbdf1c59c9ddad45cfc6064ac0c2cf18 (patch)
tree676531bb89b34f00d36937725417340bea3504ed /llvm/lib/CodeGen/MachineCSE.cpp
parentb727b0483c864a3d82dce4c4da913cfe968aed4e (diff)
downloadllvm-f8d2d87fbbdf1c59c9ddad45cfc6064ac0c2cf18.zip
llvm-f8d2d87fbbdf1c59c9ddad45cfc6064ac0c2cf18.tar.gz
llvm-f8d2d87fbbdf1c59c9ddad45cfc6064ac0c2cf18.tar.bz2
Speculative fix for std stream destruction order on Windows.
The MSVC CRT uses TLS storage to implement per-thread locales. This storage gets freed during program termination, and if we attempt to do any io operations (like flushing the std streams) after this occurs the program may abort. This patch is a speculative fix for that issue. The fix tries forcing the initialization of the locale TLS before initializing the std streams. This should mean that the TLS is freed after we destroy the streams. llvm-svn: 361348
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions