Mercurial > hg > CbC > CbC_llvm
diff clang-tools-extra/clangd/support/Function.h @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 0572611fdcc8 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/clang-tools-extra/clangd/support/Function.h Mon May 25 11:55:54 2020 +0900 +++ b/clang-tools-extra/clangd/support/Function.h Tue Jun 08 06:07:14 2021 +0900 @@ -51,7 +51,7 @@ Subscription &operator=(Subscription &&Other) { // If *this is active, unsubscribe. if (Parent) { - std::lock_guard<std::recursive_mutex>(Parent->ListenersMu); + std::lock_guard<std::recursive_mutex> Lock(Parent->ListenersMu); llvm::erase_if(Parent->Listeners, [&](const std::pair<Listener, unsigned> &P) { return P.second == ListenerID;