Skip to content

Commit 023e2cb

Browse files
committed
[RISCV] Remove Match_InvalidXSfmmVType. NFC
It's not reachable because the custom parser will accept or fail the whole instruction.
1 parent b48f293 commit 023e2cb

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,10 +1655,6 @@ bool RISCVAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
16551655
return generateImmOutOfRangeError(
16561656
Operands, ErrorInfo, -1, (1 << 5) - 1,
16571657
"immediate must be non-zero in the range");
1658-
case Match_InvalidXSfmmVType: {
1659-
SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1660-
return generateXSfmmVTypeError(ErrorLoc);
1661-
}
16621658
case Match_InvalidVTypeI: {
16631659
SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
16641660
return generateVTypeError(ErrorLoc);

llvm/lib/Target/RISCV/RISCVInstrInfoXSfmm.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
def XSfmmVTypeAsmOperand : AsmOperandClass {
1414
let Name = "XSfmmVType";
1515
let ParserMethod = "parseXSfmmVType";
16-
let DiagnosticType = "InvalidXSfmmVType";
1716
let RenderMethod = "addVTypeIOperands";
1817
}
1918

0 commit comments

Comments
 (0)