Avoid a hard coded constant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68603 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2009-04-08 08:09:33 +00:00
parent c1fa70c35a
commit 8ef2b89131

View File

@ -7800,7 +7800,7 @@ X86TargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
AM.Disp = Op.getImm();
}
addFullAddress(BuildMI(BB, dl, TII->get(Opc)), AM)
.addReg(MI->getOperand(4).getReg());
.addReg(MI->getOperand(X86AddrNumOperands).getReg());
// Reload the original control word now.
addFrameReference(BuildMI(BB, dl, TII->get(X86::FLDCW16m)), CWFrameIdx);