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

llvm-svn: 55867
This commit is contained in:
Owen Anderson 2008-09-06 00:50:00 +00:00
parent 3be45974bb
commit 4d5723c58f

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