MInstructionReverseIterator MBasicBlock::discardAt(MInstructionReverseIterator &iter) { for (size_t i = 0; i < iter->numOperands(); i++) iter->replaceOperand(i, NULL); return instructions_.removeAt(iter); }
MInstructionReverseIterator MBasicBlock::discardAt(MInstructionReverseIterator &iter) { AssertSafelyDiscardable(*iter); for (size_t i = 0; i < iter->numOperands(); i++) iter->discardOperand(i); return instructions_.removeAt(iter); }