[asan] Bypass pthread_attr_getdetachstate interceptor in compiler_rt code.

llvm-svn: 194369
This commit is contained in:
Evgeniy Stepanov 2013-11-11 08:56:49 +00:00
parent 489700d945
commit 987f59b5c3
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ INTERCEPTOR(int, pthread_create, void *thread,
GET_STACK_TRACE_THREAD;
int detached = 0;
if (attr != 0)
pthread_attr_getdetachstate(attr, &detached);
REAL(pthread_attr_getdetachstate)(attr, &detached);
u32 current_tid = GetCurrentTidOrInvalid();
AsanThread *t = AsanThread::Create(start_routine, arg);