Skip to content

Commit e04fe9a

Browse files
committed
[Statepoint] Fix bug found by sanitaizer.
Statepoint has no static operands, so it cannot be verified against MCInstrDescr. Revert NumDefs change introduced by ef658eb.
1 parent 515bc8c commit e04fe9a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/CodeGen/MachineVerifier.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,9 +1565,6 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
15651565
if (MCID.getOpcode() == TargetOpcode::PATCHPOINT)
15661566
NumDefs = (MONum == 0 && MO->isReg()) ? NumDefs : 0;
15671567

1568-
if (MCID.getOpcode() == TargetOpcode::STATEPOINT)
1569-
NumDefs = MI->getNumDefs();
1570-
15711568
// The first MCID.NumDefs operands must be explicit register defines
15721569
if (MONum < NumDefs) {
15731570
const MCOperandInfo &MCOI = MCID.OpInfo[MONum];

0 commit comments

Comments
 (0)