[clang-tools-extra] a2063ba - [clangd][NFC] Delete a pessimizing move

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 22 07:06:02 PST 2025


Author: Kadir Cetinkaya
Date: 2025-01-22T16:04:54+01:00
New Revision: a2063ba7ffdbbb4faf5da5f32739ab761c2e4289

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

LOG: [clangd][NFC] Delete a pessimizing move

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
index 2b1da4be5c1bd6..7c0eb9651feaa0 100644
--- a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
+++ b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
@@ -837,7 +837,7 @@ OverlayCDB::getProjectModules(PathRef File) const {
                                               PathRef CommandPath) {
     Mangler(Command, CommandPath);
   });
-  return std::move(MDB);
+  return MDB;
 }
 
 DelegatingCDB::DelegatingCDB(const GlobalCompilationDatabase *Base)


        


More information about the cfe-commits mailing list