From: Eric Christopher Date: Mon, 10 Jan 2011 23:10:59 +0000 (+0000) Subject: Expand on the safeness of restoring the sp from the fp a bit more. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4dd312f2334a215cfc7961518823ef36884b4c95;p=oota-llvm.git 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 --- 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); }