[compiler-rt] r286929 - [asan] Fixup to r286608 that makes the test pass on iOS.

Anna Zaks via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 17:57:30 PST 2016


Author: zaks
Date: Mon Nov 14 19:57:29 2016
New Revision: 286929

URL: http://llvm.org/viewvc/llvm-project?rev=286929&view=rev
Log:
[asan] Fixup to r286608 that makes the test pass on iOS.

TARGET_OS_IPHONE is defined in TargetConditionals.h. Without the include the
iOS path is never triggered.

Modified:
    compiler-rt/trunk/test/asan/TestCases/exitcode.cc

Modified: compiler-rt/trunk/test/asan/TestCases/exitcode.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/exitcode.cc?rev=286929&r1=286928&r2=286929&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/exitcode.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/exitcode.cc Mon Nov 14 19:57:29 2016
@@ -61,6 +61,10 @@ int spawn_child(char **argv) {
 #include <errno.h>
 #include <sys/wait.h>
 
+#if defined(__APPLE__)
+#include <TargetConditionals.h>
+#endif
+
 #if defined(__APPLE__) && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
 #define USE_NSGETENVIRON 1
 #else




More information about the llvm-commits mailing list