[compiler-rt] r192901 - [ASan] fix assign_large_valloc_to_global.cc to use the correct header for valloc() on OSX.

Alexander Potapenko glider at google.com
Thu Oct 17 08:48:24 PDT 2013


Author: glider
Date: Thu Oct 17 10:48:24 2013
New Revision: 192901

URL: http://llvm.org/viewvc/llvm-project?rev=192901&view=rev
Log:
[ASan] fix assign_large_valloc_to_global.cc to use the correct header for valloc() on OSX.

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

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc?rev=192901&r1=192900&r2=192901&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc Thu Oct 17 10:48:24 2013
@@ -1,5 +1,9 @@
 // Make sure we don't report a leak nor hang.
 // RUN: %clangxx_asan -O3 %s -o %t && %t
+#if defined(__APPLE__)
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 int *p = (int*)valloc(1 << 20);
 int main() { }





More information about the llvm-commits mailing list