Don't assume constant operand can only be in position 1!
llvm-svn: 1308
This commit is contained in:
parent
7e833073e3
commit
cba86d060b
|
@ -333,7 +333,7 @@ FixConstantOperandsForInstr(Instruction* vmInstr,
|
|||
int64_t immedValue;
|
||||
MachineOperand::MachineOperandType opType =
|
||||
ChooseRegOrImmed(opValue, minstr->getOpCode(), target,
|
||||
/*canUseImmed*/ (op == 1),
|
||||
(target.getInstrInfo().getImmmedConstantPos(minstr->getOpCode()) == (int) op),
|
||||
machineRegNum, immedValue);
|
||||
|
||||
if (opType == MachineOperand::MO_MachineRegister)
|
||||
|
|
Loading…
Reference in New Issue