From 15ac9af8517c716c9454095a728bb9f99cc16d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Havli=C4=8Dek?= Date: Mon, 15 Sep 2025 15:43:34 +0000 Subject: [PATCH] Fix mutex locking --- llvm/lib/Support/LSP/Transport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/LSP/Transport.cpp b/llvm/lib/Support/LSP/Transport.cpp index e71f17701636b..895ed62495282 100644 --- a/llvm/lib/Support/LSP/Transport.cpp +++ b/llvm/lib/Support/LSP/Transport.cpp @@ -120,7 +120,7 @@ bool MessageHandler::onReply(llvm::json::Value Id, // mapping and erase it. ResponseHandlerTy ResponseHandler; { - std::lock_guard responseHandlersLock(ResponseHandlerTy); + std::lock_guard ResponseHandlersLock(ResponseHandlersMutex); auto It = ResponseHandlers.find(debugString(Id)); if (It != ResponseHandlers.end()) { ResponseHandler = std::move(It->second);