summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-01-10 23:10:59 +0000
committerEric Christopher <echristo@apple.com>2011-01-10 23:10:59 +0000
commitd5bbeba8d054b5ed71d25bc3129ff8fe859e3ad4 (patch)
treec6e4c36ae1008f1c4ef04b84c0f59fdb91826693 /llvm/lib
parentb7f60e347479f485c99c6046a42c97311f35fc62 (diff)
downloadbcm5719-llvm-d5bbeba8d054b5ed71d25bc3129ff8fe859e3ad4.tar.gz
bcm5719-llvm-d5bbeba8d054b5ed71d25bc3129ff8fe859e3ad4.zip
Expand on the safeness of restoring the sp from the fp a bit more.
llvm-svn: 123193
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMFrameLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index 824538ccd79..adff2399c78 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud