Skip to content

Commit f4e14e7

Browse files
committed
[RISCV] Const correct reference argument to isElementRotate. NFC
1 parent aa3149d commit f4e14e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4613,7 +4613,7 @@ static bool isMaskedSlidePair(ArrayRef<int> Mask,
46134613

46144614
// Exactly matches the semantics of a previously existing custom matcher
46154615
// to allow migration to new matcher without changing output.
4616-
static bool isElementRotate(std::array<std::pair<int, int>, 2> &SrcInfo,
4616+
static bool isElementRotate(const std::array<std::pair<int, int>, 2> &SrcInfo,
46174617
unsigned NumElts) {
46184618
if (SrcInfo[1].first == -1)
46194619
return true;

0 commit comments

Comments
 (0)