[llvm-commits] [compiler-rt] r173149 - /compiler-rt/trunk/lib/asan/asan_new_delete.cc

Alexander Potapenko glider at google.com
Tue Jan 22 03:39:28 PST 2013


Author: glider
Date: Tue Jan 22 05:39:28 2013
New Revision: 173149

URL: http://llvm.org/viewvc/llvm-project?rev=173149&view=rev
Log:
[ASan] Disable the new/delete implementations for OSX
See https://code.google.com/p/address-sanitizer/issues/detail?id=131

Modified:
    compiler-rt/trunk/lib/asan/asan_new_delete.cc

Modified: compiler-rt/trunk/lib/asan/asan_new_delete.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_new_delete.cc?rev=173149&r1=173148&r2=173149&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_new_delete.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_new_delete.cc Tue Jan 22 05:39:28 2013
@@ -27,8 +27,9 @@
 
 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 {





More information about the llvm-commits mailing list