Skip to content

Commit 0dedb43

Browse files
committed
[clangd] Fix windows build bots without rvalue refs
1 parent 0e6d7f6 commit 0dedb43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void BackgroundIndex::update(
200200
for (const auto &FileIt : FilesToUpdate) {
201201
auto Uri = FileIt.first();
202202
// ShardedIndex should always have a shard for a file in Index.Sources.
203-
auto IF = ShardedIndex.getShard(Uri).getValue();
203+
auto IF = std::move(ShardedIndex.getShard(Uri).getValue());
204204
PathRef Path = FileIt.getValue().first;
205205

206206
// Only store command line hash for main files of the TU, since our

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ void FileIndex::updatePreamble(PathRef Path, llvm::StringRef Version,
381381
for (auto Uri : ShardedIndex.getAllSources()) {
382382
// We are using the key received from ShardedIndex, so it should always
383383
// exist.
384-
auto IF = ShardedIndex.getShard(Uri).getValue();
384+
auto IF = std::move(ShardedIndex.getShard(Uri).getValue());
385385
PreambleSymbols.update(
386386
Uri, std::make_unique<SymbolSlab>(std::move(*IF.Symbols)),
387387
std::make_unique<RefSlab>(),

0 commit comments

Comments
 (0)