aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2024-06-03 21:15:40 -0700
committerGitHub <noreply@github.com>2024-06-03 21:15:40 -0700
commit4973ad47181710d2a69292018cad7bc6f95a6c1a (patch)
treeade9ccc15188fee0c43898302f4e90c8a368a183 /llvm
parentfa72a0237a688d71647bf001bf9020e6090f6121 (diff)
downloadllvm-4973ad47181710d2a69292018cad7bc6f95a6c1a.zip
llvm-4973ad47181710d2a69292018cad7bc6f95a6c1a.tar.gz
llvm-4973ad47181710d2a69292018cad7bc6f95a6c1a.tar.bz2
[MemProf][NFC] Use range for loop (#94308)
With the change in 2fa059195bb54f422cc996db96ac549888268eae we can now use a range for loop.
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp b/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
index d141fd9..03923b8 100644
--- a/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
+++ b/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
@@ -1681,9 +1681,8 @@ void CallsiteContextGraph<DerivedCCG, FuncTy,
// from the profiled contexts.
MapVector<CallInfo, ContextNode *> TailCallToContextNodeMap;
- for (auto Entry = NonAllocationCallToContextNodeMap.begin();
- Entry != NonAllocationCallToContextNodeMap.end(); Entry++) {
- auto *Node = Entry->second;
+ for (auto &Entry : NonAllocationCallToContextNodeMap) {
+ auto *Node = Entry.second;
assert(Node->Clones.empty());
// Check all node callees and see if in the same function.
auto Call = Node->Call.call();