Skip to content

Commit 3463e51

Browse files
committed
Use NoSubRegister instead of NoRegister
1 parent a9a3bd8 commit 3463e51

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
@@ -8786,7 +8786,7 @@ SDValue RISCVTargetLowering::lowerEXTRACT_SUBVECTOR(SDValue Op,
87868786
if (VecVT.bitsGT(getLMUL1VT(VecVT))) {
87878787
// If VecVT has an LMUL > 1, then SubVecVT should have a smaller LMUL, and
87888788
// we should have successfully decomposed the extract into a subregister.
8789-
assert(SubRegIdx != RISCV::NoRegister);
8789+
assert(SubRegIdx != RISCV::NoSubRegister);
87908790
InterSubVT = getLMUL1VT(VecVT);
87918791
Vec = DAG.getTargetExtractSubreg(SubRegIdx, DL, InterSubVT, Vec);
87928792
}

0 commit comments

Comments
 (0)