diff options
author | Eric Christopher <echristo@apple.com> | 2011-01-10 23:10:59 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-01-10 23:10:59 +0000 |
commit | 4dd312f2334a215cfc7961518823ef36884b4c95 (patch) | |
tree | f6c4f2580579d0013d3c1cc82822397f347903a5 /lib/Target/ARM/ARMFrameLowering.cpp | |
parent | 97fd9a58de3c99a74b0890a908430fa3ab894bed (diff) |
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
Diffstat (limited to 'lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r-- | lib/Target/ARM/ARMFrameLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFrameLowering.cpp b/lib/Target/ARM/ARMFrameLowering.cpp index 824538ccd7..adff2399c7 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); } |