From 4dd312f2334a215cfc7961518823ef36884b4c95 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 10 Jan 2011 23:10:59 +0000 Subject: [PATCH] Expand on the safeness of restoring the sp from the fp a bit more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123193 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMFrameLowering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMFrameLowering.cpp b/lib/Target/ARM/ARMFrameLowering.cpp index 824538ccd79..adff2399c78 100644 --- a/lib/Target/ARM/ARMFrameLowering.cpp +++ b/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); } -- 2.34.1