Skip to content

Commit 594be17

Browse files
committed
[clangd] Second attempt at fixing VS2019 build bots
1 parent cfb5f89 commit 594be17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang-tools-extra/clangd/unittests/FileIndexTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,11 +528,11 @@ TEST(FileShardedIndexTest, Sharding) {
528528
B.insert(Sym1);
529529
// Should be stored in both b.h and b.cc
530530
B.insert(Sym2);
531-
IF.Symbols = std::move(B).build();
531+
IF.Symbols.emplace(std::move(B).build());
532532
}
533533
{
534534
// Should be stored in b.cc
535-
IF.Refs = std::move(*refSlab(Sym1.ID, BSourceUri.c_str()));
535+
IF.Refs.emplace(std::move(*refSlab(Sym1.ID, BSourceUri.c_str())));
536536
}
537537
{
538538
RelationSlab::Builder B;
@@ -542,7 +542,7 @@ TEST(FileShardedIndexTest, Sharding) {
542542
B.insert(Relation{Sym2.ID, RelationKind::BaseOf, Sym1.ID});
543543
// Dangling relation should be dropped.
544544
B.insert(Relation{symbol("3").ID, RelationKind::BaseOf, Sym1.ID});
545-
IF.Relations = std::move(B).build();
545+
IF.Relations.emplace(std::move(B).build());
546546
}
547547

548548
IF.Sources.emplace();

0 commit comments

Comments
 (0)