summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-10-30 20:38:16 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-10-30 20:38:16 +0000
commit8f211a4ab013d4a3324162b972a5b4d075cbd20e (patch)
tree4f44aea7dd634471c749af9dd221712a1fcd91bd /include
parent9691807669739595fd0f9b565cd0b0d7f0c49156 (diff)
downloadllvm-8f211a4ab013d4a3324162b972a5b4d075cbd20e.tar.gz
llvm-8f211a4ab013d4a3324162b972a5b4d075cbd20e.tar.bz2
llvm-8f211a4ab013d4a3324162b972a5b4d075cbd20e.tar.xz
Bug fix in setting an implicit ref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index a157e9d39b..7955601080 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);
}