@@ -490,8 +490,8 @@ MachineBasicBlock::iterator XCoreFrameLowering::eliminateCallFramePseudoInstr(
490
490
if (!hasReservedCallFrame (MF)) {
491
491
// Turn the adjcallstackdown instruction into 'extsp <amt>' and the
492
492
// adjcallstackup instruction into 'ldaw sp, sp[<amt>]'
493
- MachineInstr * Old = I;
494
- uint64_t Amount = Old-> getOperand (0 ).getImm ();
493
+ MachineInstr & Old = * I;
494
+ uint64_t Amount = Old. getOperand (0 ).getImm ();
495
495
if (Amount != 0 ) {
496
496
// We need to keep the stack aligned properly. To do this, we round the
497
497
// amount of space needed for the outgoing arguments up to the next
@@ -513,15 +513,14 @@ MachineBasicBlock::iterator XCoreFrameLowering::eliminateCallFramePseudoInstr(
513
513
}
514
514
515
515
MachineInstr *New;
516
- if (Old-> getOpcode () == XCore::ADJCALLSTACKDOWN) {
516
+ if (Old. getOpcode () == XCore::ADJCALLSTACKDOWN) {
517
517
int Opcode = isU6 ? XCore::EXTSP_u6 : XCore::EXTSP_lu6;
518
- New=BuildMI (MF, Old->getDebugLoc (), TII.get (Opcode))
519
- .addImm (Amount);
518
+ New = BuildMI (MF, Old.getDebugLoc (), TII.get (Opcode)).addImm (Amount);
520
519
} else {
521
- assert (Old-> getOpcode () == XCore::ADJCALLSTACKUP);
520
+ assert (Old. getOpcode () == XCore::ADJCALLSTACKUP);
522
521
int Opcode = isU6 ? XCore::LDAWSP_ru6 : XCore::LDAWSP_lru6;
523
- New= BuildMI (MF, Old-> getDebugLoc (), TII.get (Opcode), XCore::SP)
524
- .addImm (Amount);
522
+ New = BuildMI (MF, Old. getDebugLoc (), TII.get (Opcode), XCore::SP)
523
+ .addImm (Amount);
525
524
}
526
525
527
526
// Replace the pseudo instruction with a new instruction...
0 commit comments