mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 18:24:05 +00:00
Fix the X86 addConstantPoolReference, which had the operands in the wrong order.
llvm-svn: 55867
This commit is contained in:
parent
3be45974bb
commit
4d5723c58f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user