summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorThomas Anderson <thomasanderson@google.com>2019-03-27 18:09:30 +0000
committerThomas Anderson <thomasanderson@google.com>2019-03-27 18:09:30 +0000
commit24812d8ac42e0c11f9c185282e4e4cc1d9b067a6 (patch)
tree4810f1278816e657851557610b9d44d908c8bbfd /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent7462303e0680d36ff856c54707489474f717e83f (diff)
downloadbcm5719-llvm-24812d8ac42e0c11f9c185282e4e4cc1d9b067a6.tar.gz
bcm5719-llvm-24812d8ac42e0c11f9c185282e4e4cc1d9b067a6.zip
Fix and speedup __libcpp_locale_guard on Windows
The old implementation assumed the POSIX `setlocale()` API where the old locale is returned. On Windows, the _new_ locale is returned. This meant that `__libcpp_locale_guard` wasn't resetting the locale on destruction. The new implementation fixes the above issue and takes advantage of `setlocale(LC_ALL)` to reduce the number of calls, and also avoids setting the locale at all if it's not necessary. Differential Revision: https://reviews.llvm.org/D59572 llvm-svn: 357104
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud