Skip to content

Commit 817e777

Browse files
[CodeGen] Avoid repeated hash lookups (NFC) (#124506)
1 parent e0c5a85 commit 817e777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/PrologEpilogInserter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ static void stashEntryDbgValues(MachineBasicBlock &MBB,
208208
}
209209

210210
// Remove stashed debug values from the block.
211-
if (EntryDbgValues.count(&MBB))
212-
for (auto *MI : EntryDbgValues[&MBB])
211+
if (auto It = EntryDbgValues.find(&MBB); It != EntryDbgValues.end())
212+
for (auto *MI : It->second)
213213
MI->removeFromParent();
214214
}
215215

0 commit comments

Comments
 (0)