diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp index 824538ccd79d..adff2399c78f 100644 --- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp +++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp @@ -288,7 +288,8 @@ void ARMFrameLowering::emitPrologue(MachineFunction &MF) const { } // If the frame has variable sized objects then the epilogue must restore - // the sp from fp. + // the sp from fp. We can assume there's an FP here since hasFP already + // checks for hasVarSizedObjects. if (MFI->hasVarSizedObjects()) AFI->setShouldRestoreSPFromFP(true); }