diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2017-10-10 14:58:09 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2017-10-10 14:58:09 +0000 |
commit | 03f9e767908ce6e15d4c8484ddfed5ea609ad89f (patch) | |
tree | e2979c676070b0536ea30d328947fdf39c9c0d52 /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp | |
parent | 96d35fe06add34594f4b0e7960122a58445ee3e0 (diff) | |
download | llvm-03f9e767908ce6e15d4c8484ddfed5ea609ad89f.zip llvm-03f9e767908ce6e15d4c8484ddfed5ea609ad89f.tar.gz llvm-03f9e767908ce6e15d4c8484ddfed5ea609ad89f.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
0 files changed, 0 insertions, 0 deletions