aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-04-12 12:04:59 +0200
committerlemon <lsof@mailbox.org>2026-04-12 12:04:59 +0200
commit6adc43e4fc9de9cccee9b6be1ec0a8a1c7376d12 (patch)
treedda8fee2d586276acf62e8bece774492641623bd
parentf13b3021eb273af3093a498fb3b09271546ae3cc (diff)
aarch64: align leaf func stacks too
-rw-r--r--src/t_aarch64_emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_aarch64_emit.c b/src/t_aarch64_emit.c
index bdbb0b0..b8eff85 100644
--- a/src/t_aarch64_emit.c
+++ b/src/t_aarch64_emit.c
@@ -984,8 +984,8 @@ prologue(uchar **pcode, Frame *frame, Function *fn)
frame->size += 8;
}
}
- /* ensure stack is 16-byte aligned for function calls */
- if (!fn->isleaf && ((fn->stksiz + frame->size) & 0xF) != 0) {
+ /* ensure stack is 16-byte aligned */
+ if (((fn->stksiz + frame->size) & 0xF) != 0) {
fn->stksiz += 8;
}
frame->size += fn->stksiz;