Skip to content

Commit 7267cb1

Browse files
toppercfrederik-h
authored andcommitted
[ARM] Pass ArrayRef by value instead of const reference. NFC
1 parent 1010ae2 commit 7267cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ void ARMLoadStoreOpt::moveLiveRegsBefore(const MachineBasicBlock &MBB,
612612
}
613613
}
614614

615-
static bool ContainsReg(const ArrayRef<std::pair<unsigned, bool>> &Regs,
615+
static bool ContainsReg(ArrayRef<std::pair<unsigned, bool>> Regs,
616616
unsigned Reg) {
617617
for (const std::pair<unsigned, bool> &R : Regs)
618618
if (R.first == Reg)

0 commit comments

Comments
 (0)