Skip to content

Commit 4405451

Browse files
[AsmPrinter] Avoid repeated map lookups (NFC) (#127576)
1 parent e0ed5e8 commit 4405451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,9 @@ static void clobberRegEntries(InlinedEntity Var, unsigned RegNo,
362362
FellowRegisters.push_back(Reg);
363363

364364
// Drop all entries that have ended.
365+
auto &Entries = LiveEntries[Var];
365366
for (auto Index : IndicesToErase)
366-
LiveEntries[Var].erase(Index);
367+
Entries.erase(Index);
367368
}
368369

369370
/// Add a new debug value for \p Var. Closes all overlapping debug values.

0 commit comments

Comments
 (0)