Skip to content

Commit

Permalink
[NFC] Fix typo in REAL(pthread_join(th, ret)) (llvm#102393)
Browse files Browse the repository at this point in the history
Looks like the macro expands to the same,
but usually we do `REAL(pthread_join)(th, ret)`.
  • Loading branch information
vitalybuka authored Aug 7, 2024
1 parent 5e5cce5 commit 89c8d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler-rt/lib/sanitizer_common/sanitizer_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int internal_pthread_join(void *th, void **ret);
return REAL(pthread_create)(th, attr, callback, param); \
} \
int internal_pthread_join(void *th, void **ret) { \
return REAL(pthread_join(th, ret)); \
return REAL(pthread_join)(th, ret); \
} \
} // namespace __sanitizer

Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ int internal_pthread_create(void *th, void *attr, void *(*callback)(void *),
}
int internal_pthread_join(void *th, void **ret) {
ScopedIgnoreInterceptors ignore;
return REAL(pthread_join(th, ret));
return REAL(pthread_join)(th, ret);
}
} // namespace __sanitizer

Expand Down

0 comments on commit 89c8d68

Please sign in to comment.