diff options
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMFrameLowering.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp index 824538c..adff239 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);  }  | 
