forked from OSchip/llvm-project
[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:
parent
515bc8c155
commit
e04fe9aefd
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue