[compiler-rt] [TSAN] Add __tsan_check_no_mutexes_held helper (PR #69372)
Kenny Yu via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 2 15:17:02 PDT 2023
================
@@ -93,7 +93,9 @@ static const char *ReportTypeString(ReportType typ, uptr tag) {
return "signal handler spoils errno";
case ReportTypeDeadlock:
return "lock-order-inversion (potential deadlock)";
- // No default case so compiler warns us if we miss one
+ case ReportTypeMutexCannotBeLocked:
+ return "mutex cannot be locked on this code path";
----------------
kennyyu wrote:
Will update wording
https://github.com/llvm/llvm-project/pull/69372
More information about the llvm-commits
mailing list