Expand on the safeness of restoring the sp from the fp a bit more.

llvm-svn: 123193
This commit is contained in:
Eric Christopher 2011-01-10 23:10:59 +00:00
parent b7f60e3474
commit d5bbeba8d0
1 changed files with 2 additions and 1 deletions

View File

@ -288,7 +288,8 @@ void ARMFrameLowering::emitPrologue(MachineFunction &MF) const {
} }
// If the frame has variable sized objects then the epilogue must restore // 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()) if (MFI->hasVarSizedObjects())
AFI->setShouldRestoreSPFromFP(true); AFI->setShouldRestoreSPFromFP(true);
} }