aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema')
-rw-r--r--lib/Sema/AnalysisBasedWarnings.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/AnalysisBasedWarnings.cpp b/lib/Sema/AnalysisBasedWarnings.cpp
index afbfabf674..20d83fe507 100644
--- a/lib/Sema/AnalysisBasedWarnings.cpp
+++ b/lib/Sema/AnalysisBasedWarnings.cpp
@@ -1274,8 +1274,7 @@ static void warnBackEdgeUnequalLocksets(Sema &S, const Lockset LoopReentrySet,
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));
}
}