forked from OSchip/llvm-project
[NFC][sanitizer] Check &real_pthread_join
It's a weak function which may be undefined.
This commit is contained in:
parent
fb9fc3c951
commit
8aabde5a4b
|
@ -1770,7 +1770,8 @@ void *internal_start_thread(void *(*func)(void *arg), void *arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void internal_join_thread(void *th) {
|
void internal_join_thread(void *th) {
|
||||||
real_pthread_join(th, nullptr);
|
if (&real_pthread_join)
|
||||||
|
real_pthread_join(th, nullptr);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void *internal_start_thread(void *(*func)(void *), void *arg) { return 0; }
|
void *internal_start_thread(void *(*func)(void *), void *arg) { return 0; }
|
||||||
|
|
Loading…
Reference in New Issue