[compiler-rt] r290126 - More fixup for r290119: Make the ifdef work.

Kuba Mracek via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 10:27:26 PST 2016


Author: kuba.brecka
Date: Mon Dec 19 12:27:26 2016
New Revision: 290126

URL: http://llvm.org/viewvc/llvm-project?rev=290126&view=rev
Log:
More fixup for r290119: Make the ifdef work.


Modified:
    compiler-rt/trunk/test/tsan/debug_alloc_stack.cc

Modified: compiler-rt/trunk/test/tsan/debug_alloc_stack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/debug_alloc_stack.cc?rev=290126&r1=290125&r2=290126&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/debug_alloc_stack.cc (original)
+++ compiler-rt/trunk/test/tsan/debug_alloc_stack.cc Mon Dec 19 12:27:26 2016
@@ -7,7 +7,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#if !__APPLE__
+#ifndef __APPLE__
 #include <sys/types.h>
 #endif
 
@@ -19,7 +19,7 @@ void alloc_func() { mem = (char *)malloc
 
 void *AllocThread(void *context) {
   uint64_t tid;
-#if __APPLE__
+#ifdef __APPLE__
   pthread_threadid_np(NULL, &tid);
 #else
   tid = gettid();




More information about the llvm-commits mailing list