Skip to content

Commit

Permalink
Make argument const to silence cppcheck warning. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Feb 29, 2020
1 parent dd046c9 commit 6e7a768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/MachineInstr.cpp
Expand Up @@ -2197,7 +2197,7 @@ void MachineInstr::changeDebugValuesDefReg(Register Reg) {

using MMOList = SmallVector<const MachineMemOperand *, 2>;

static unsigned getSpillSlotSize(MMOList &Accesses,
static unsigned getSpillSlotSize(const MMOList &Accesses,
const MachineFrameInfo &MFI) {
unsigned Size = 0;
for (auto A : Accesses)
Expand Down

0 comments on commit 6e7a768

Please sign in to comment.