Skip to content

Commit bdf6ddc

Browse files
committed
Simpler Iteration
1 parent 0bc0c6a commit bdf6ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVFrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
966966
if (RVFI->useQCIInterrupt(MF)) {
967967
// The function starts with `QC.C.MIENTER(.NEST)`, so the `(QC.)CM.PUSH(FP)`
968968
// could only be the next instruction.
969-
PossiblePush = std::next(PossiblePush);
969+
++PossiblePush;
970970

971971
// Insert the CFI metadata before where we think the `(QC.)CM.PUSH(FP)`
972972
// could be. The PUSH will also get its own CFI metadata for its own

0 commit comments

Comments
 (0)