diff --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp b/clang-tools-extra/clangd/GlobalCompilationDatabase.cpp index 2b1da4be5c1b..7c0eb9651fea 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)