[clang-tools-extra] e9997cf - [clangd] Try to fix buildbots - copy elision not happening here?

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 23 12:12:39 PST 2020


Author: Sam McCall
Date: 2020-02-23T21:12:26+01:00
New Revision: e9997cfb4d44e93cc65a29d1e1bb7451f418a7c7

URL: https://github.com/llvm/llvm-project/commit/e9997cfb4d44e93cc65a29d1e1bb7451f418a7c7
DIFF: https://github.com/llvm/llvm-project/commit/e9997cfb4d44e93cc65a29d1e1bb7451f418a7c7.diff

LOG: [clangd] Try to fix buildbots - copy elision not happening here?

Added: 
    

Modified: 
    clang-tools-extra/clangd/ClangdServer.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/ClangdServer.cpp b/clang-tools-extra/clangd/ClangdServer.cpp
index 2448fbe9ad79..6e37a7b441cb 100644
--- a/clang-tools-extra/clangd/ClangdServer.cpp
+++ b/clang-tools-extra/clangd/ClangdServer.cpp
@@ -414,7 +414,7 @@ tweakSelection(const Range &Sel, const InputsAndAST &AST) {
         return false;
       });
   assert(!Result.empty() && "Expected at least one SelectionTree");
-  return Result;
+  return std::move(Result);
 }
 
 void ClangdServer::enumerateTweaks(PathRef File, Range Sel,


        


More information about the cfe-commits mailing list