Skip to content

Commit a3220df

Browse files
committed
[clangd] Add std::move() to a return statement to please some compilers.
This has been causing build errors in Swift CI. Differential Revision: https://reviews.llvm.org/D81079
1 parent 31cbe0f commit a3220df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clangd/index/FileIndex.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ FileShardedIndex::getShard(llvm::StringRef Uri) const {
201201
RelB.insert(*Rel);
202202
}
203203
IF.Relations = std::move(RelB).build();
204-
return IF;
204+
// Explicit move here is needed by some compilers.
205+
return std::move(IF);
205206
}
206207

207208
SlabTuple indexMainDecls(ParsedAST &AST) {

0 commit comments

Comments
 (0)