[clang-tools-extra] 6d53897 - [clangd] Fix MSVC builds

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 00:25:40 PDT 2020


Author: Kadir Cetinkaya
Date: 2020-04-15T09:24:58+02:00
New Revision: 6d538975543475ce64e840b6b7c9915250bdac36

URL: https://github.com/llvm/llvm-project/commit/6d538975543475ce64e840b6b7c9915250bdac36
DIFF: https://github.com/llvm/llvm-project/commit/6d538975543475ce64e840b6b7c9915250bdac36.diff

LOG: [clangd] Fix MSVC builds

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/index/FileIndex.cpp b/clang-tools-extra/clangd/index/FileIndex.cpp
index d644268b8da9..92a11cd06e56 100644
--- a/clang-tools-extra/clangd/index/FileIndex.cpp
+++ b/clang-tools-extra/clangd/index/FileIndex.cpp
@@ -190,7 +190,7 @@ FileShardedIndex::FileShardedIndex(IndexFileIn Input, PathRef HintPath)
   }
 }
 std::vector<PathRef> FileShardedIndex::getAllFiles() const {
-  return {Shards.keys().begin(), Shards.keys().end()};
+  return std::vector<PathRef>(Shards.keys().begin(), Shards.keys().end());
 }
 
 IndexFileIn FileShardedIndex::getShard(PathRef File) const {


        


More information about the cfe-commits mailing list