[clangd] Fix a use after move
authorIlya Biryukov <ibiryukov@google.com>
Wed, 30 Jan 2019 09:39:01 +0000 (09:39 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 30 Jan 2019 09:39:01 +0000 (09:39 +0000)
Introduced in r352494.

llvm-svn: 352612

clang-tools-extra/clangd/ClangdLSPServer.cpp

index cb8bf5a..705777c 100644 (file)
@@ -697,8 +697,8 @@ void ClangdLSPServer::onCodeAction(const CodeActionParams &Params,
       };
 
   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)));
 }