1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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 913883dd6e
commit beba0cd579

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);
}