Skip to content

Commit 89c8d68

Browse files
authored
[NFC] Fix typo in REAL(pthread_join(th, ret)) (#102393)
Looks like the macro expands to the same, but usually we do `REAL(pthread_join)(th, ret)`.
1 parent 5e5cce5 commit 89c8d68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_posix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int internal_pthread_join(void *th, void **ret);
8686
return REAL(pthread_create)(th, attr, callback, param); \
8787
} \
8888
int internal_pthread_join(void *th, void **ret) { \
89-
return REAL(pthread_join(th, ret)); \
89+
return REAL(pthread_join)(th, ret); \
9090
} \
9191
} // namespace __sanitizer
9292

compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ int internal_pthread_create(void *th, void *attr, void *(*callback)(void *),
10971097
}
10981098
int internal_pthread_join(void *th, void **ret) {
10991099
ScopedIgnoreInterceptors ignore;
1100-
return REAL(pthread_join(th, ret));
1100+
return REAL(pthread_join)(th, ret);
11011101
}
11021102
} // namespace __sanitizer
11031103

0 commit comments

Comments
 (0)