diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2022-12-04 20:33:25 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2022-12-04 20:33:25 +0100 |
commit | 89568521943b79fe27c6f3c19799a575318b1882 (patch) | |
tree | 022c9e99faafa020adb50c98668c4c4739cc9c3e /clang/lib/Serialization/GlobalModuleIndex.cpp | |
parent | f55880e830e150d98e5340cdc3c4c41867a5514d (diff) | |
download | llvm-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.cpp | 6 |
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. |