diff options
author | Kazu Hirata <kazu@google.com> | 2024-08-23 16:56:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 16:56:27 -0700 |
commit | ca53611c905f82628ab2e40185307995b552e14d (patch) | |
tree | 8a08cbcf0efade94a3bf5ae7b22186e0e5cb1c9c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | cdd11d694a406a98a16d6265168ee2fbe1b6a87c (diff) | |
download | llvm-ca53611c905f82628ab2e40185307995b552e14d.zip llvm-ca53611c905f82628ab2e40185307995b552e14d.tar.gz llvm-ca53611c905f82628ab2e40185307995b552e14d.tar.bz2 |
[llvm] Use range-based for loops (NFC) (#105861)
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 20737c0..e4b4339 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -4807,9 +4807,9 @@ void IndexBitcodeWriter::writeCombinedGlobalValueSummary() { // corresponding type id records. for (auto &T : ReferencedTypeIds) { auto TidIter = Index.typeIds().equal_range(T); - for (auto It = TidIter.first; It != TidIter.second; ++It) { - writeTypeIdSummaryRecord(NameVals, StrtabBuilder, It->second.first, - It->second.second); + for (const auto &[GUID, TypeIdPair] : make_range(TidIter)) { + writeTypeIdSummaryRecord(NameVals, StrtabBuilder, TypeIdPair.first, + TypeIdPair.second); Stream.EmitRecord(bitc::FS_TYPE_ID, NameVals); NameVals.clear(); } |