Author: Kadir Cetinkaya
Date: 2020-04-30T15:37:33+02:00
New Revision: 594be179c960af2cbc4f68dff4a30cc70179a83e
URL: 
https://github.com/llvm/llvm-project/commit/594be179c960af2cbc4f68dff4a30cc70179a83e
DIFF: 
https://github.com/llvm/llvm-project/commit/594be179c960af2cbc4f68dff4a30cc70179a83e.diff

LOG: [clangd] Second attempt at fixing VS2019 build bots

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/FileIndexTests.cpp 
b/clang-tools-extra/clangd/unittests/FileIndexTests.cpp
index 9a8d0807d527..f1ddc0286f09 100644
--- a/clang-tools-extra/clangd/unittests/FileIndexTests.cpp
+++ b/clang-tools-extra/clangd/unittests/FileIndexTests.cpp
@@ -528,11 +528,11 @@ TEST(FileShardedIndexTest, Sharding) {
     B.insert(Sym1);
     // Should be stored in both b.h and b.cc
     B.insert(Sym2);
-    IF.Symbols = std::move(B).build();
+    IF.Symbols.emplace(std::move(B).build());
   }
   {
     // Should be stored in b.cc
-    IF.Refs = std::move(*refSlab(Sym1.ID, BSourceUri.c_str()));
+    IF.Refs.emplace(std::move(*refSlab(Sym1.ID, BSourceUri.c_str())));
   }
   {
     RelationSlab::Builder B;
@@ -542,7 +542,7 @@ TEST(FileShardedIndexTest, Sharding) {
     B.insert(Relation{Sym2.ID, RelationKind::BaseOf, Sym1.ID});
     // Dangling relation should be dropped.
     B.insert(Relation{symbol("3").ID, RelationKind::BaseOf, Sym1.ID});
-    IF.Relations = std::move(B).build();
+    IF.Relations.emplace(std::move(B).build());
   }
 
   IF.Sources.emplace();


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to