diff options
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r-- | clang/lib/Serialization/GlobalModuleIndex.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp index b2283c2..568e207 100644 --- a/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -815,10 +815,8 @@ bool GlobalModuleIndexBuilder::writeIndex(llvm::BitstreamWriter &Stream) { IdentifierIndexWriterTrait Trait; // Populate the hash table. - for (InterestingIdentifierMap::iterator I = InterestingIdentifiers.begin(), - IEnd = InterestingIdentifiers.end(); - I != IEnd; ++I) { - Generator.insert(I->first(), I->second, Trait); + for (auto &[Identifier, IDs] : InterestingIdentifiers) { + Generator.insert(Identifier, IDs, Trait); } // Create the on-disk hash table in a buffer. |