[clangd] Save an unnecessary copy, NFC.

llvm-svn: 372752
This commit is contained in:
Haojian Wu 2019-09-24 13:25:38 +00:00
parent eefbc358eb
commit 3a415c20ad
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ createScopeFileDistance(llvm::ArrayRef<std::string> QueryScopes) {
Param.MaxUpTraversals = std::max(Path.second - 1, 0);
Sources[Path.first] = std::move(Param);
}
return FileDistance(Sources, Opts);
return FileDistance(std::move(Sources), Opts);
}
ScopeDistance::ScopeDistance(llvm::ArrayRef<std::string> QueryScopes)