From 81f0b331dc977f78284cc98071c863565c04c472 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Tue, 22 Jan 2013 11:39:28 +0000 Subject: [PATCH] [ASan] Disable the new/delete implementations for OSX See https://code.google.com/p/address-sanitizer/issues/detail?id=131 llvm-svn: 173149 --- compiler-rt/lib/asan/asan_new_delete.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/asan/asan_new_delete.cc b/compiler-rt/lib/asan/asan_new_delete.cc index 5d1f23c..7abc91a 100644 --- a/compiler-rt/lib/asan/asan_new_delete.cc +++ b/compiler-rt/lib/asan/asan_new_delete.cc @@ -27,8 +27,9 @@ void ReplaceOperatorsNewAndDelete() { } using namespace __asan; // NOLINT -// On Android new() goes through malloc interceptors. -#if !ASAN_ANDROID +// On Mac and Android new() goes through malloc interceptors. +// See also https://code.google.com/p/address-sanitizer/issues/detail?id=131. +#if !ASAN_ANDROID && !ASAN_MAC // Fake std::nothrow_t to avoid including . namespace std { -- 2.7.4