Skip to content

Commit 90d03a0

Browse files
authored
[RISCV] Use MutableArrayRef instead of SmallVectorImpl&. NFC (llvm#159651)
We're only going to modify existing items, not add or remove any elements to the vector.
1 parent 51e3c3d commit 90d03a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10734,7 +10734,7 @@ static SDValue lowerCttzElts(SDNode *N, SelectionDAG &DAG,
1073410734
}
1073510735

1073610736
static inline void promoteVCIXScalar(SDValue Op,
10737-
SmallVectorImpl<SDValue> &Operands,
10737+
MutableArrayRef<SDValue> Operands,
1073810738
SelectionDAG &DAG) {
1073910739
const RISCVSubtarget &Subtarget =
1074010740
DAG.getMachineFunction().getSubtarget<RISCVSubtarget>();
@@ -10770,7 +10770,7 @@ static inline void promoteVCIXScalar(SDValue Op,
1077010770
}
1077110771

1077210772
static void processVCIXOperands(SDValue OrigOp,
10773-
SmallVectorImpl<SDValue> &Operands,
10773+
MutableArrayRef<SDValue> Operands,
1077410774
SelectionDAG &DAG) {
1077510775
promoteVCIXScalar(OrigOp, Operands, DAG);
1077610776
const RISCVSubtarget &Subtarget =

0 commit comments

Comments
 (0)