aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-17 15:58:13 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-17 15:58:13 +0000
commitd886ed99fbd3528bdcebf324f747a9ae92977f06 (patch)
tree3ad1038130b430c222de6f3f258b155ad7f87255
parentf41dadafae176705cfd9514eee40cce1ec25b6c9 (diff)
Instructiosn with 1 memory operand have 4 operands in our
representation.. duh! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11554 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86RegisterInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp
index 8381665f1e..d94e4ac266 100644
--- a/lib/Target/X86/X86RegisterInfo.cpp
+++ b/lib/Target/X86/X86RegisterInfo.cpp
@@ -89,8 +89,7 @@ int X86RegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
static MachineInstr *MakeMInst(unsigned Opcode, unsigned FrameIndex,
MachineInstr *MI) {
- return addFrameReference(BuildMI(Opcode, 1, MI->getOperand(0).getReg()),
- FrameIndex);
+ return addFrameReference(BuildMI(Opcode, 4), FrameIndex);
}
static MachineInstr *MakeMRInst(unsigned Opcode, unsigned FrameIndex,