diff --git a/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp b/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp --- a/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp +++ b/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp @@ -264,13 +264,13 @@ // Add a reference to this Info in the Index { - std::lock_guard Guard(IndexMutex); + std::lock_guard Guard(IndexMutex); clang::doc::Generator::addInfoToIndex(CDCtx.Idx, Reduced.get().get()); } // Save in the result map (needs a lock due to threaded access). { - std::lock_guard Guard(USRToInfoMutex); + std::lock_guard Guard(USRToInfoMutex); USRToInfo[Group.getKey()] = std::move(Reduced.get()); } });