Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc =================================================================== --- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc +++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc @@ -400,6 +400,8 @@ return false; if (common_flags()->handle_abort && signum == SIGABRT) return true; + if (common_flags()->handle_sigill && signum == SIGILL) + return true; return (signum == SIGSEGV || signum == SIGBUS) && common_flags()->handle_segv; } Index: compiler-rt/trunk/test/asan/TestCases/ill.cc =================================================================== --- compiler-rt/trunk/test/asan/TestCases/ill.cc +++ compiler-rt/trunk/test/asan/TestCases/ill.cc @@ -3,7 +3,6 @@ // RUN: %clangxx_asan %s -o %t && %env_asan_opts=handle_sigill=0 not --crash %run %t 2>&1 | FileCheck %s --check-prefix=CHECK0 // RUN: %clangxx_asan %s -o %t && %env_asan_opts=handle_sigill=1 not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK1 // REQUIRES: x86-target-arch -// UNSUPPORTED: darwin #ifdef _WIN32 #include