Skip to content

Commit c23256e

Browse files
[AsmPrinter] Avoid repeated hash lookups (NFC) (llvm#127744)
1 parent 2f2295c commit c23256e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/CodeGen/AsmPrinter/EHStreamer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ void EHStreamer::computeCallSiteTable(
252252
if (&MBB == &Asm->MF->front() || MBB.isBeginSection()) {
253253
// We start a call-site range upon function entry and at the beginning of
254254
// every basic block section.
255-
CallSiteRanges.push_back(
256-
{Asm->MBBSectionRanges[MBB.getSectionID()].BeginLabel,
257-
Asm->MBBSectionRanges[MBB.getSectionID()].EndLabel,
258-
Asm->getMBBExceptionSym(MBB), CallSites.size()});
255+
auto &Range = Asm->MBBSectionRanges[MBB.getSectionID()];
256+
CallSiteRanges.push_back({Range.BeginLabel, Range.EndLabel,
257+
Asm->getMBBExceptionSym(MBB),
258+
CallSites.size()});
259259
PreviousIsInvoke = false;
260260
SawPotentiallyThrowing = false;
261261
LastLabel = nullptr;

0 commit comments

Comments
 (0)