[clangd] Add std::move for converting-return to satisfy older compilers

llvm-svn: 343800
This commit is contained in:
Sam McCall 2018-10-04 17:15:41 +00:00
parent 0c67a4e958
commit bd7718ec26
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ std::unique_ptr<SymbolIndex> TestTU::index() const {
auto Idx = llvm::make_unique<FileIndex>();
Idx->updatePreamble(Filename, AST.getASTContext(), AST.getPreprocessorPtr());
Idx->updateMain(Filename, AST);
return Idx;
return std::move(Idx);
}
const Symbol &findSymbol(const SymbolSlab &Slab, llvm::StringRef QName) {