aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AVR/AVRFrameLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/AVR/AVRFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/AVR/AVRFrameLowering.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/AVR/AVRFrameLowering.cpp b/llvm/lib/Target/AVR/AVRFrameLowering.cpp
index 342c90a..dd70078 100644
--- a/llvm/lib/Target/AVR/AVRFrameLowering.cpp
+++ b/llvm/lib/Target/AVR/AVRFrameLowering.cpp
@@ -45,10 +45,9 @@ bool AVRFrameLowering::hasReservedCallFrame(const MachineFunction &MF) const {
// conditions:
// - Y pointer is reserved to be the frame pointer.
// - The function does not contain variable sized objects.
- // - MaxCallFrameSize doesn't fit into 6-bits (when it's greater than 63).
+
const MachineFrameInfo &MFI = MF.getFrameInfo();
- return (hasFP(MF) && !MFI.hasVarSizedObjects() &&
- !isUInt<6>(MFI.getMaxCallFrameSize()));
+ return hasFP(MF) && !MFI.hasVarSizedObjects();
}
void AVRFrameLowering::emitPrologue(MachineFunction &MF,