Skip to content

Commit 4fb0ef0

Browse files
committed
Add braces as requested
1 parent 5a54950 commit 4fb0ef0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/RISCV/RISCVFrameLowering.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,15 +918,16 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
918918
}
919919

920920
if (RVVStackSize) {
921-
if (NeedProbe)
921+
if (NeedProbe) {
922922
allocateAndProbeStackForRVV(MF, MBB, MBBI, DL, RVVStackSize,
923923
MachineInstr::FrameSetup, !hasFP(MF));
924-
else
924+
} else {
925925
// We must keep the stack pointer aligned through any intermediate
926926
// updates.
927927
RI->adjustReg(MBB, MBBI, DL, SPReg, SPReg,
928928
StackOffset::getScalable(-RVVStackSize),
929929
MachineInstr::FrameSetup, getStackAlign());
930+
}
930931

931932
if (!hasFP(MF)) {
932933
// Emit .cfi_def_cfa_expression "sp + StackSize + RVVStackSize * vlenb".

0 commit comments

Comments
 (0)