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
This commit is contained in:
Alkis Evlogimenos 2004-02-17 15:58:13 +00:00
parent f41dadafae
commit d886ed99fb

View File

@ -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,