aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2022-12-04 20:33:25 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2022-12-04 20:33:25 +0100
commit89568521943b79fe27c6f3c19799a575318b1882 (patch)
tree022c9e99faafa020adb50c98668c4c4739cc9c3e /clang/lib/Serialization/GlobalModuleIndex.cpp
parentf55880e830e150d98e5340cdc3c4c41867a5514d (diff)
downloadllvm-89568521943b79fe27c6f3c19799a575318b1882.zip
llvm-89568521943b79fe27c6f3c19799a575318b1882.tar.gz
llvm-89568521943b79fe27c6f3c19799a575318b1882.tar.bz2
Undo a bit of fcf4e360ba6b that confuses MSVC
clang\lib\Serialization\GlobalModuleIndex.cpp(818): error C2440: 'initializing': cannot convert from 'const ValueTy' to '_Ty2 &&' with [ ValueTy=llvm::SmallVector<unsigned int,2> ] and [ _Ty2=llvm::SmallVector<unsigned int,2> ]
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r--clang/lib/Serialization/GlobalModuleIndex.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp
index 568e207..b2283c2 100644
--- a/clang/lib/Serialization/GlobalModuleIndex.cpp
+++ b/clang/lib/Serialization/GlobalModuleIndex.cpp
@@ -815,8 +815,10 @@ bool GlobalModuleIndexBuilder::writeIndex(llvm::BitstreamWriter &Stream) {
IdentifierIndexWriterTrait Trait;
// Populate the hash table.
- for (auto &[Identifier, IDs] : InterestingIdentifiers) {
- Generator.insert(Identifier, IDs, Trait);
+ for (InterestingIdentifierMap::iterator I = InterestingIdentifiers.begin(),
+ IEnd = InterestingIdentifiers.end();
+ I != IEnd; ++I) {
+ Generator.insert(I->first(), I->second, Trait);
}
// Create the on-disk hash table in a buffer.