aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2017-01-27 22:19:11 +0000
committerDimitry Andric <dimitry@andric.com>2017-01-27 22:19:11 +0000
commit47e0ef31483f99469fe3e3e67a21f061cb6e007b (patch)
tree24451bca960a426e00f2e41ecf17e0c7c9728a3f /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent9d0eb9960c7e39048de3eabd7e9c96b82b3a7bab (diff)
downloadllvm-47e0ef31483f99469fe3e3e67a21f061cb6e007b.zip
llvm-47e0ef31483f99469fe3e3e67a21f061cb6e007b.tar.gz
llvm-47e0ef31483f99469fe3e3e67a21f061cb6e007b.tar.bz2
Stop intercepting some malloc-related functions on FreeBSD and macOS
Summary: In https://bugs.freebsd.org/215125 I was notified that some configure scripts attempt to test for the Linux-specific `mallinfo` and `mallopt` functions by compiling and linking small programs which references the functions, and observing whether that results in errors. FreeBSD and macOS do not have the `mallinfo` and `mallopt` functions, so normally these tests would fail, but when sanitizers are enabled, they incorrectly succeed, because the sanitizers define interceptors for these functions. This also applies to some other malloc-related functions, such as `memalign`, `pvalloc` and `cfree`. Fix this by not intercepting `mallinfo`, `mallopt`, `memalign`, `pvalloc` and `cfree` for FreeBSD and macOS, in all sanitizers. Reviewers: emaste, kcc Subscribers: hans, joerg, llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D27654 llvm-svn: 293337
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions