[PATCH] D77671: [clangd] Destroy context before resetting CurrentReq
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 8 01:03:03 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2a6eedbb51fd: [clangd] Destroy context before resetting CurrentReq (authored by kadircet).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77671/new/
https://reviews.llvm.org/D77671
Files:
clang-tools-extra/clangd/TUScheduler.cpp
Index: clang-tools-extra/clangd/TUScheduler.cpp
===================================================================
--- clang-tools-extra/clangd/TUScheduler.cpp
+++ clang-tools-extra/clangd/TUScheduler.cpp
@@ -255,9 +255,11 @@
NextReq.reset();
}
- WithContext Guard(std::move(CurrentReq->Ctx));
- // Build the preamble and let the waiters know about it.
- build(std::move(*CurrentReq));
+ {
+ WithContext Guard(std::move(CurrentReq->Ctx));
+ // Build the preamble and let the waiters know about it.
+ build(std::move(*CurrentReq));
+ }
bool IsEmpty = false;
{
std::lock_guard<std::mutex> Lock(Mutex);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77671.255919.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200408/517f076e/attachment.bin>
More information about the cfe-commits
mailing list