projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97fd9a5
)
Expand on the safeness of restoring the sp from the fp a bit more.
author
Eric Christopher
<echristo@apple.com>
Mon, 10 Jan 2011 23:10:59 +0000
(23:10 +0000)
committer
Eric Christopher
<echristo@apple.com>
Mon, 10 Jan 2011 23:10:59 +0000
(23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123193
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMFrameLowering.cpp
b/lib/Target/ARM/ARMFrameLowering.cpp
index 824538ccd79dd4cf8ded64dc7014ea50b5d02c11..adff2399c78fe762d892835ac740778f4b7187a6 100644
(file)
--- 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);
}