From ae723648d5e44f2a7060392f514dc74b94f3ba64 Mon Sep 17 00:00:00 2001 From: Lucas Steuernagel Date: Mon, 11 Dec 2023 11:48:57 -0300 Subject: [PATCH] Adjust variable name --- llvm/lib/Target/SBF/SBFFrameLowering.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/SBF/SBFFrameLowering.cpp b/llvm/lib/Target/SBF/SBFFrameLowering.cpp index ca03a64d3ac7d36..83f14eabcfcdc2b 100644 --- a/llvm/lib/Target/SBF/SBFFrameLowering.cpp +++ b/llvm/lib/Target/SBF/SBFFrameLowering.cpp @@ -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(MF.getSubtarget().getInstrInfo()); BuildMI(MBB, MBBI, Dl, TII.get(SBF::ADD_ri), SBF::R11) .addReg(SBF::R11) - .addImm(NumBytes); + .addImm(IsSubtract? -NumBytes : NumBytes); } }