summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2016-09-15 18:36:13 +0000
committerShoaib Meenai <smeenai@fb.com>2016-09-15 18:36:13 +0000
commitf6eea04cd134ebc149017f68d5b33b73113bdd0c (patch)
treee9c968735f506d3e63dff9748867ca6d835c0d08 /llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
parent06a67ba57d438066b3c679d5ee52dbe90ea8a605 (diff)
downloadbcm5719-llvm-f6eea04cd134ebc149017f68d5b33b73113bdd0c.tar.gz
bcm5719-llvm-f6eea04cd134ebc149017f68d5b33b73113bdd0c.zip
[libc++] Avoid <memory> include in locale_win32.h
When `_LIBCPP_NO_EXCEPTIONS` is defined, we end up with compile errors when targeting MSVCRT: * Code includes `<new>` * `<new>` includes `<cstdlib>` in order to get `abort` * `<cstdlib>` includes `<stdlib.h>`, _before_ the `using ::abort` * `<stdlib.h>` includes `locale_win32.h` * `locale_win32.h` includes `<memory>` * `<memory>` includes `<stdexcept>` * `<stdexcept>` includes `<cstdlib` for `abort`, but that inclusion gets (correctly) ignored because of header guards * `<stdexcept>` references `_VSTD::abort`, which isn't declared The easiest solution is to make `locale_win32.h` not include `<memory>`, by removing the use of `unique_ptr` and manually restoring the locale instead. Differential Revision: https://reviews.llvm.org/D24374 llvm-svn: 281641
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud