forked from OSchip/llvm-project
Expand on the safeness of restoring the sp from the fp a bit more.
llvm-svn: 123193
This commit is contained in:
parent
b7f60e3474
commit
d5bbeba8d0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue