[clang-tools-extra] r352612 - [clangd] Fix a use after move
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 30 01:39:01 PST 2019
Author: ibiryukov
Date: Wed Jan 30 01:39:01 2019
New Revision: 352612
URL: http://llvm.org/viewvc/llvm-project?rev=352612&view=rev
Log:
[clangd] Fix a use after move
Introduced in r352494.
Modified:
clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
Modified: clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp?rev=352612&r1=352611&r2=352612&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp (original)
+++ clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp Wed Jan 30 01:39:01 2019
@@ -697,8 +697,8 @@ void ClangdLSPServer::onCodeAction(const
};
Server->enumerateTweaks(File.file(), Params.range,
- Bind(ConsumeActions, std::move(Reply),
- std::move(File), std::move(*Code), Params.range,
+ Bind(ConsumeActions, std::move(Reply), File,
+ std::move(*Code), Params.range,
std::move(FixIts)));
}
More information about the cfe-commits
mailing list