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,


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to