Skip to content

Commit

Permalink
Add SANITIZER_CDECL to __tsan_check_no_mutexes_held (#71471)
Browse files Browse the repository at this point in the history
in #69625 @strega-nil added
cdecl to a huge number of sanitizer interface declarations. It looks
like she was racing against @kennyyu adding a tsan interface function. I
noticed this when merging in the latest changes from llvm/main and
corrected it.

Co-authored-by: Charlie Barto <Charles.Barto@microsoft.com>
  • Loading branch information
barcharcraz and Charlie Barto authored Nov 7, 2023
1 parent 555a71b commit 16a395b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/include/sanitizer/tsan_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void SANITIZER_CDECL __tsan_mutex_post_divert(void *addr, unsigned flags);

// Check that the current thread does not hold any mutexes,
// report a bug report otherwise.
void __tsan_check_no_mutexes_held();
void SANITIZER_CDECL __tsan_check_no_mutexes_held();

// External race detection API.
// Can be used by non-instrumented libraries to detect when their objects are
Expand Down

0 comments on commit 16a395b

Please sign in to comment.