mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 17:33:29 +00:00
No need to align the stack if there are no stack
objects. Fixes a couple of tests on Linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fdb99838a3
commit
edec8d89df
@ -464,7 +464,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
|
||||
// works.
|
||||
if (!RegInfo->targetHandlesStackFrameRounding() &&
|
||||
(FFI->hasCalls() || FFI->hasVarSizedObjects() ||
|
||||
RegInfo->needsStackRealignment(Fn))) {
|
||||
(RegInfo->needsStackRealignment(Fn) &&
|
||||
FFI->getObjectIndexEnd() != 0))) {
|
||||
// If we have reserved argument space for call sites in the function
|
||||
// immediately on entry to the current function, count it as part of the
|
||||
// overall stack size.
|
||||
|
Loading…
Reference in New Issue
Block a user