[llvm-commits] [llvm] r68603 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Rafael Espindola
rafael.espindola at gmail.com
Wed Apr 8 01:09:43 PDT 2009
Author: rafael
Date: Wed Apr 8 03:09:33 2009
New Revision: 68603
URL: http://llvm.org/viewvc/llvm-project?rev=68603&view=rev
Log:
Avoid a hard coded constant.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=68603&r1=68602&r2=68603&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Apr 8 03:09:33 2009
@@ -7800,7 +7800,7 @@
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);
More information about the llvm-commits
mailing list