[ASan] Disable the new/delete implementations for OSX
authorAlexander Potapenko <glider@google.com>
Tue, 22 Jan 2013 11:39:28 +0000 (11:39 +0000)
committerAlexander Potapenko <glider@google.com>
Tue, 22 Jan 2013 11:39:28 +0000 (11:39 +0000)
See https://code.google.com/p/address-sanitizer/issues/detail?id=131

llvm-svn: 173149

compiler-rt/lib/asan/asan_new_delete.cc

index 5d1f23c..7abc91a 100644 (file)
@@ -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 <new>.
 namespace std {