Skip to content

Commit 6d9c6f0

Browse files
committed
[RISCV] Use MCRegister for return value from allocateRVVReg. NFC
1 parent 8638fe1 commit 6d9c6f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18976,9 +18976,10 @@ static bool CC_RISCVAssign2XLen(unsigned XLen, CCState &State, CCValAssign VA1,
1897618976
return false;
1897718977
}
1897818978

18979-
static unsigned allocateRVVReg(MVT ValVT, unsigned ValNo,
18980-
std::optional<unsigned> FirstMaskArgument,
18981-
CCState &State, const RISCVTargetLowering &TLI) {
18979+
static MCRegister allocateRVVReg(MVT ValVT, unsigned ValNo,
18980+
std::optional<unsigned> FirstMaskArgument,
18981+
CCState &State,
18982+
const RISCVTargetLowering &TLI) {
1898218983
const TargetRegisterClass *RC = TLI.getRegClassFor(ValVT);
1898318984
if (RC == &RISCV::VRRegClass) {
1898418985
// Assign the first mask argument to V0.

0 commit comments

Comments
 (0)