diff options
-rw-r--r-- | lib/Target/SystemZ/SystemZRegisterInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZRegisterInfo.cpp b/lib/Target/SystemZ/SystemZRegisterInfo.cpp index dc1561fb1a..6e8982d94a 100644 --- a/lib/Target/SystemZ/SystemZRegisterInfo.cpp +++ b/lib/Target/SystemZ/SystemZRegisterInfo.cpp @@ -149,7 +149,8 @@ SystemZRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF, /* FIXME: function calls eh_return */) MF.getRegInfo().setPhysRegUsed(SystemZ::R14D); - if (FFI->getObjectIndexEnd() != 0 || // Contains automatic variables + if (FFI->hasCalls() || + FFI->getObjectIndexEnd() != 0 || // Contains automatic variables FFI->hasVarSizedObjects() // Function calls dynamic alloca's /* FIXME: function is varargs */) MF.getRegInfo().setPhysRegUsed(SystemZ::R15D); |