From beba0cd579776f385541c833333a1a40fb6bc824 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Wed, 30 Oct 2002 20:38:16 +0000 Subject: [PATCH] Bug fix in setting an implicit ref. llvm-svn: 4452 --- include/llvm/CodeGen/MachineInstr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index a157e9d39be..79556010807 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -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); }