Bug fix in setting an implicit ref.

llvm-svn: 4452
This commit is contained in:
Vikram S. Adve 2002-10-30 20:38:16 +00:00
parent 9f205ddfdd
commit eaad439223
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ void MachineInstr::setImplicitRef(unsigned i,
bool isDefAndUse)
{
assert(i < getNumImplicitRefs() && "setImplicitRef() out of range!");
SetMachineOperandVal(i + getNumImplicitRefs(),
SetMachineOperandVal(i + getNumOperands(),
MachineOperand::MO_VirtualRegister,
V, isDef, isDefAndUse);
}