[Statepoint] Fix bug found by sanitaizer.

Statepoint has no static operands, so it cannot be verified
against MCInstrDescr. Revert NumDefs change introduced by ef658ebd62.
This commit is contained in:
Denis Antrushin 2020-07-16 22:54:58 +03:00
parent 515bc8c155
commit e04fe9aefd
1 changed files with 0 additions and 3 deletions

View File

@ -1565,9 +1565,6 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
if (MCID.getOpcode() == TargetOpcode::PATCHPOINT)
NumDefs = (MONum == 0 && MO->isReg()) ? NumDefs : 0;
if (MCID.getOpcode() == TargetOpcode::STATEPOINT)
NumDefs = MI->getNumDefs();
// The first MCID.NumDefs operands must be explicit register defines
if (MONum < NumDefs) {
const MCOperandInfo &MCOI = MCID.OpInfo[MONum];