Skip to content

Commit

Permalink
Adjust variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Dec 11, 2023
1 parent 5783903 commit ae72364
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions llvm/lib/Target/SBF/SBFFrameLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@ namespace {

void adjustStackPointer(MachineFunction &MF, MachineBasicBlock &MBB,
MachineBasicBlock::iterator &MBBI,
bool Subtract) {
bool IsSubtract) {
MachineFrameInfo &MFI = MF.getFrameInfo();
int NumBytes = (int)MFI.getStackSize();
if (Subtract)
NumBytes = - NumBytes;
if (NumBytes) {
DebugLoc Dl;
const SBFInstrInfo &TII =
*static_cast<const SBFInstrInfo *>(MF.getSubtarget().getInstrInfo());
BuildMI(MBB, MBBI, Dl, TII.get(SBF::ADD_ri), SBF::R11)
.addReg(SBF::R11)
.addImm(NumBytes);
.addImm(IsSubtract? -NumBytes : NumBytes);
}
}

Expand Down

0 comments on commit ae72364

Please sign in to comment.