Skip to content

Commit 14409bf

Browse files
kazutakahiratajoaosaffran
authored andcommitted
[ARM] Avoid repeated hash lookups (NFC) (llvm#128994)
1 parent af3c826 commit 14409bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/ARM/ARMISelLowering.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,8 +2731,9 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
27312731

27322732
SDValue ByValSrc;
27332733
bool NeedsStackCopy;
2734-
if (ByValTemporaries.contains(realArgIdx)) {
2735-
ByValSrc = ByValTemporaries[realArgIdx];
2734+
if (auto It = ByValTemporaries.find(realArgIdx);
2735+
It != ByValTemporaries.end()) {
2736+
ByValSrc = It->second;
27362737
NeedsStackCopy = true;
27372738
} else {
27382739
ByValSrc = Arg;

0 commit comments

Comments
 (0)