"mutex '%0' is still held at the end of its scope">,
InGroup<ThreadSafety>, DefaultIgnore;
def warn_expecting_lock_held_on_loop : Warning<
- "expecting lock on '%0' to be %select{held|held exclusively}1 at start of "
- "each loop">,
+ "expecting lock on '%0' to be held at start of each loop">,
InGroup<ThreadSafety>, DefaultIgnore;
def warn_lock_exclusive_and_shared : Warning<
"lock '%0' is exclusive and shared in the same scope">,
const MutexID &Mutex = I.getKey();
// We report this error at the location of the first statement in a loop
PartialDiagnostic Warning =
- S.PDiag(diag::warn_expecting_lock_held_on_loop)
- << Mutex.getName() << LK_Shared;
+ S.PDiag(diag::warn_expecting_lock_held_on_loop) << Mutex.getName();
Warnings.push_back(DelayedDiag(FirstLocInLoop, Warning));
}
}