Skip to content

Commit

Permalink
[Statepoint] Fix bug found by sanitaizer.
Browse files Browse the repository at this point in the history
Statepoint has no static operands, so it cannot be verified
against MCInstrDescr. Revert NumDefs change introduced by ef658eb.
  • Loading branch information
dantrushin committed Jul 16, 2020
1 parent 515bc8c commit e04fe9a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions llvm/lib/CodeGen/MachineVerifier.cpp
Expand Up @@ -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];
Expand Down

0 comments on commit e04fe9a

Please sign in to comment.