llvm::MachineOperand::clearParent

clearParent - Reset the parent pointer.

Synopsis

Declared in <llvm/CodeGen/MachineOperand.h>

void
clearParent();

Description

The MachineOperand copy constructor also copies ParentMI, expecting the original to be deleted. If a MachineOperand is ever stored outside a MachineInstr, the parent pointer must be cleared.

Never call clearParent() on an operand in a MachineInstr.