Go to file
Kostya Kortchinsky 03f9e76790 [sanitizer] Move the errno/ENOMEM allocator checks logic to separate .cc
Summary:
The fact that `sanitizer_allocator_checks.h` is including `sanitizer_errno.h`
creates complications for future changes, where it would conflict with `errno.h`
definitions on Android and Fuchsia (macro redefinition).

By moving the portion that sets errno in the checks to a separate compilation
unit, we avoid the inclusion of the header there, which solves the issue.

Not that it is not vital to have that function in a header as it is called as a
result of an unlikely event, and doesn't need to be inlined.

Reviewers: alekseyshl

Reviewed By: alekseyshl

Subscribers: kubamracek, llvm-commits, mgorny

Differential Revision: https://reviews.llvm.org/D38706

llvm-svn: 315319
2017-10-10 14:58:09 +00:00
clang [OPENMP] Add default codegen|tests for 'target parallel for[ simd]' 2017-10-10 14:14:43 +00:00
clang-tools-extra [clangd] clang-format the source code. NFC. 2017-10-10 14:21:04 +00:00
compiler-rt [sanitizer] Move the errno/ENOMEM allocator checks logic to separate .cc 2017-10-10 14:58:09 +00:00
debuginfo-tests Revert r313600 due to bot failures on Green Dragon. 2017-09-19 14:51:37 +00:00
libclc Implement mem_fence on ptx 2017-10-09 19:43:04 +00:00
libcxx Remove unneeded typename from test 2017-10-10 07:42:19 +00:00
libcxxabi Fix ASAN build with older compiler-rt versions. 2017-09-14 22:37:34 +00:00
libunwind [docs] Mention that SjLj works on any OS on the archs where supported by the compiler 2017-10-06 19:14:07 +00:00
lld [ELF] Set Dot initially to --image-base value when using linker scripts 2017-10-10 10:09:35 +00:00
lldb Update ABISysV_arm64::RegisterIsVolatile to accept registers prefixed with r 2017-10-09 17:49:32 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [mips] Duplicate the reciprocal instruction definitions for FP32 2017-10-10 14:41:11 +00:00
openmp KMP_HW_SUBSET vs KMP_PLACE_THREADS rival envirables fix 2017-10-06 19:23:19 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Rename OptimizationDiagnosticInfo.h to OptimizationRemarkEmitter.h 2017-10-09 23:49:08 +00:00