aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-21 07:23:30 -0700
committerGitHub <noreply@github.com>2024-08-21 07:23:30 -0700
commit5ddc79b093f2afaaf2c69d20d7d44448da04458a (patch)
tree93645e7d1dfd428a683925d202549a8f4e5bd863 /llvm/lib/LTO/LTO.cpp
parentd6d8243dcd4ea768549904036ed31b8e59e14c73 (diff)
downloadllvm-5ddc79b093f2afaaf2c69d20d7d44448da04458a.zip
llvm-5ddc79b093f2afaaf2c69d20d7d44448da04458a.tar.gz
llvm-5ddc79b093f2afaaf2c69d20d7d44448da04458a.tar.bz2
[LTO] Use a range-based for loop (NFC) (#105467)
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index cb3369d..e554586 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -330,8 +330,8 @@ std::string llvm::computeLTOCacheKey(
// Include the hash for all type identifiers used by this module.
for (GlobalValue::GUID TId : UsedTypeIds) {
auto TidIter = Index.typeIds().equal_range(TId);
- for (auto It = TidIter.first; It != TidIter.second; ++It)
- AddTypeIdSummary(It->second.first, It->second.second);
+ for (const auto &I : make_range(TidIter))
+ AddTypeIdSummary(I.second.first, I.second.second);
}
AddUnsigned(UsedCfiDefs.size());