summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2016-05-19 22:00:33 +0000
committerDan Liew <dan@su-root.co.uk>2016-05-19 22:00:33 +0000
commit3868e468fea62a245b12f9debec242f6d2a62e23 (patch)
treed0ba0c034ed1e7497e638d3b576c7738a730121c /llvm/lib/Target/X86/X86FastISel.cpp
parent97d7a66299278911c3ca5b828d29d34f0cd942f0 (diff)
downloadbcm5719-llvm-3868e468fea62a245b12f9debec242f6d2a62e23.tar.gz
bcm5719-llvm-3868e468fea62a245b12f9debec242f6d2a62e23.zip
[LibFuzzer]
Work around crashes in ``__sanitizer_malloc_hook()`` under Mac OSX. Under Mac OSX we intercept calls to malloc before thread local storage is initialised leading to a crash when accessing ``AllocTracer``. To workaround this ``AllocTracer`` is only accessed in the hook under Linux. For symmetry ``__sanitizer_free_hook()`` is also modified in the same way. To support this change a set of new macros LIBFUZZER_LINUX and LIBFUZZER_APPLE has been defined which can be used to check the target being compiled for. Differential Revision: http://reviews.llvm.org/D20402 llvm-svn: 270145
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud