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
This commit is contained in:
Eric Christopher 2011-01-10 23:10:59 +00:00
parent 97fd9a58de
commit 4dd312f233

View File

@ -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);
}