Skip to content

Commit 4973ad4

Browse files
[MemProf][NFC] Use range for loop (llvm#94308)
With the change in 2fa0591 we can now use a range for loop.
1 parent fa72a02 commit 4973ad4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,9 +1681,8 @@ void CallsiteContextGraph<DerivedCCG, FuncTy,
16811681
// from the profiled contexts.
16821682
MapVector<CallInfo, ContextNode *> TailCallToContextNodeMap;
16831683

1684-
for (auto Entry = NonAllocationCallToContextNodeMap.begin();
1685-
Entry != NonAllocationCallToContextNodeMap.end(); Entry++) {
1686-
auto *Node = Entry->second;
1684+
for (auto &Entry : NonAllocationCallToContextNodeMap) {
1685+
auto *Node = Entry.second;
16871686
assert(Node->Clones.empty());
16881687
// Check all node callees and see if in the same function.
16891688
auto Call = Node->Call.call();

0 commit comments

Comments
 (0)