[compiler-rt] r192973 - [ASan] fix compilation of atexit_stats.cc on OSX

Alexander Potapenko glider at google.com
Fri Oct 18 07:12:15 PDT 2013


Author: glider
Date: Fri Oct 18 09:12:15 2013
New Revision: 192973

URL: http://llvm.org/viewvc/llvm-project?rev=192973&view=rev
Log:
[ASan] fix compilation of atexit_stats.cc on OSX

Modified:
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/atexit_stats.cc

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/atexit_stats.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/atexit_stats.cc?rev=192973&r1=192972&r2=192973&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/atexit_stats.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/atexit_stats.cc Fri Oct 18 09:12:15 2013
@@ -2,7 +2,9 @@
 // RUN: %clangxx_asan -O3 %s -o %t
 // RUN: ASAN_OPTIONS=atexit=1:print_stats=1 %t 2>&1 | FileCheck %s
 #include <stdlib.h>
+#if !defined(__APPLE__)
 #include <malloc.h>
+#endif
 int *p1 = (int*)malloc(900);
 int *p2 = (int*)malloc(90000);
 int *p3 = (int*)malloc(9000000);





More information about the llvm-commits mailing list