Skip to content

Commit 16a395b

Browse files
barcharcrazCharlie Barto
andauthored
Add SANITIZER_CDECL to __tsan_check_no_mutexes_held (llvm#71471)
in llvm#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 <[email protected]>
1 parent 555a71b commit 16a395b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/include/sanitizer/tsan_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void SANITIZER_CDECL __tsan_mutex_post_divert(void *addr, unsigned flags);
129129

130130
// Check that the current thread does not hold any mutexes,
131131
// report a bug report otherwise.
132-
void __tsan_check_no_mutexes_held();
132+
void SANITIZER_CDECL __tsan_check_no_mutexes_held();
133133

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

0 commit comments

Comments
 (0)