[llvm-commits] [compiler-rt] r151158 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Feb 22 04:31:25 PST 2012


Author: eugenis
Date: Wed Feb 22 06:31:25 2012
New Revision: 151158

URL: http://llvm.org/viewvc/llvm-project?rev=151158&view=rev
Log:
[asan] Remove mentions of pthread*_t from interceptors.

Some platforms do not define pthread_t in stdlib.h.

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

Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=151158&r1=151157&r2=151158&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Wed Feb 22 06:31:25 2012
@@ -268,9 +268,8 @@
 }
 
 #ifndef _WIN32
-INTERCEPTOR(int, pthread_create, pthread_t *thread,
-                                 const pthread_attr_t *attr,
-                                 void *(*start_routine)(void*), void *arg) {
+INTERCEPTOR(int, pthread_create, void *thread,
+    void *attr, void *(*start_routine)(void*), void *arg) {
   GET_STACK_TRACE_HERE(kStackTraceMax);
   int current_tid = asanThreadRegistry().GetCurrentTidOrMinusOne();
   AsanThread *t = AsanThread::Create(current_tid, start_routine, arg, &stack);





More information about the llvm-commits mailing list