mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
Fix a thinko. MO is getOperand(i-1) so we don't have to adjust e.
llvm-svn: 59696
This commit is contained in:
parent
6d0d98d450
commit
bc91bb7658
@ -686,9 +686,7 @@ unsigned ARMCodeEmitter::getMachineSoImmOpValue(unsigned SoImm) {
|
||||
|
||||
unsigned ARMCodeEmitter::getAddrModeSBit(const MachineInstr &MI,
|
||||
const TargetInstrDesc &TID) const {
|
||||
unsigned e = TID.getNumOperands();
|
||||
if (e) --e; // Looks at the last non-implicit operand as well.
|
||||
for (unsigned i = MI.getNumOperands(); i != e; --i) {
|
||||
for (unsigned i = MI.getNumOperands(), e = TID.getNumOperands(); i != e; --i){
|
||||
const MachineOperand &MO = MI.getOperand(i-1);
|
||||
if (MO.isReg() && MO.isDef() && MO.getReg() == ARM::CPSR)
|
||||
return 1 << ARMII::S_BitShift;
|
||||
|
Loading…
x
Reference in New Issue
Block a user