Fix the X86 addConstantPoolReference, which had the operands in the wrong order.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-09-06 00:50:00 +00:00
parent 853244f8a6
commit 99d6dca2f8

View File

@ -121,7 +121,8 @@ addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0) {
inline const MachineInstrBuilder &
addConstantPoolReference(const MachineInstrBuilder &MIB, unsigned CPI,
int Offset = 0) {
return MIB.addConstantPoolIndex(CPI).addImm(1).addReg(0).addImm(Offset);
assert(Offset == 0 && "Non-zero offsets not supported!");
return MIB.addReg(0).addImm(1).addReg(0).addConstantPoolIndex(CPI);
}
} // End llvm namespace