diff options
author | Alexander Potapenko <glider@google.com> | 2013-02-06 15:45:43 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2013-02-06 15:45:43 +0000 |
commit | 09aba10499fc621907ff4153a030e79c3456670c (patch) | |
tree | 4e64f597f1c3a6a507325e126dbbfe7edbde9dcb | |
parent | 383965914085e387937c63d1b7670a5d98734aaa (diff) | |
download | bcm5719-llvm-09aba10499fc621907ff4153a030e79c3456670c.tar.gz bcm5719-llvm-09aba10499fc621907ff4153a030e79c3456670c.zip |
[ASan] fix the interceptor for siglongjmp. As we're using dylib interposition, we must intercept both siglongjmp and longjmp on Darwin.
llvm-svn: 174510
-rw-r--r-- | compiler-rt/lib/asan/asan_intercepted_functions.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler-rt/lib/asan/asan_intercepted_functions.h b/compiler-rt/lib/asan/asan_intercepted_functions.h index 14862d63703..1b0b4f62acd 100644 --- a/compiler-rt/lib/asan/asan_intercepted_functions.h +++ b/compiler-rt/lib/asan/asan_intercepted_functions.h @@ -67,9 +67,7 @@ using __sanitizer::uptr; # define ASAN_INTERCEPT_SIGNAL_AND_SIGACTION 0 #endif -// On Darwin siglongjmp tailcalls longjmp, so we don't want to intercept it -// there. -#if !defined(_WIN32) && !defined(__APPLE__) +#if !defined(_WIN32) # define ASAN_INTERCEPT_SIGLONGJMP 1 #else # define ASAN_INTERCEPT_SIGLONGJMP 0 |