diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-27 01:56:22 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-27 01:56:22 +0000 |
commit | 184793fc8a9cf6ecc9147468bbcc068f472b8517 (patch) | |
tree | 8a3fb921e6c50ca0cd6c77e2ce1c1ce7d6171514 /lib/Target/ARM/ARMRegisterInfo.cpp | |
parent | 85263907681d21094cab75547cf4a5f538703fcc (diff) |
Re-apply 56683 with fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMRegisterInfo.cpp')
-rw-r--r-- | lib/Target/ARM/ARMRegisterInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMRegisterInfo.cpp b/lib/Target/ARM/ARMRegisterInfo.cpp index 7787f43ff6..3a0a57d92d 100644 --- a/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/lib/Target/ARM/ARMRegisterInfo.cpp @@ -209,7 +209,8 @@ ARMRegisterInfo::requiresRegisterScavenging(const MachineFunction &MF) const { /// or if frame pointer elimination is disabled. /// bool ARMRegisterInfo::hasFP(const MachineFunction &MF) const { - return NoFramePointerElim || MF.getFrameInfo()->hasVarSizedObjects(); + const MachineFrameInfo *MFI = MF.getFrameInfo(); + return NoFramePointerElim || MFI->hasVarSizedObjects(); } // hasReservedCallFrame - Under normal circumstances, when a frame pointer is |