From: Vikram S. Adve Date: Wed, 30 Oct 2002 20:38:16 +0000 (+0000) Subject: Bug fix in setting an implicit ref. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8f211a4ab013d4a3324162b972a5b4d075cbd20e;p=oota-llvm.git Bug fix in setting an implicit ref. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4452 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); }