remove dead code in parseRegisterList checking for ARM::RA_AUTH_CODE

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D122577
This commit is contained in:
Ties Stuij 2022-04-07 14:35:30 +01:00
parent 5909c67883
commit edeceb8647
1 changed files with 1 additions and 3 deletions

View File

@ -4528,9 +4528,7 @@ bool ARMAsmParser::parseRegisterList(OperandVector &Operands, bool EnforceOrder,
if (Reg == EndReg)
continue;
// The register must be in the same register class as the first.
if ((Reg == ARM::RA_AUTH_CODE &&
RC != &ARMMCRegisterClasses[ARM::GPRRegClassID]) ||
(Reg != ARM::RA_AUTH_CODE && !RC->contains(Reg)))
if (!RC->contains(Reg))
return Error(AfterMinusLoc, "invalid register in register list");
// Ranges must go from low to high.
if (MRI->getEncodingValue(Reg) > MRI->getEncodingValue(EndReg))