Skip to content

Commit 6dd0aa3

Browse files
committed
Remove unnecessary lock.
1 parent 35f7955 commit 6dd0aa3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang-tools-extra/clangd/TUScheduler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,6 @@ void ASTWorker::startTask(llvm::StringRef Name,
13301330
std::optional<UpdateType> Update,
13311331
TUScheduler::ASTActionInvalidation Invalidation) {
13321332
if (RunSync) {
1333-
std::lock_guard<std::mutex> Lock(Mutex);
13341333
assert(!Done && "running a task after stop()");
13351334
runTask(Name, Task);
13361335
return;

0 commit comments

Comments
 (0)