Skip to content

Commit

Permalink
Fix PHP JIT failures. CALLs don't affect code with custom stack frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Apr 16, 2024
1 parent c407241 commit 81ccde4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ir_aarch64.dasc
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,9 @@ binop_fp:
return insn->op;
}
case IR_CALL:
ctx->flags |= IR_USE_FRAME_POINTER;
if (ctx->flags & IR_FUNCTION) {
ctx->flags |= IR_USE_FRAME_POINTER;
}
ctx->flags2 |= IR_HAS_CALLS | IR_16B_FRAME_ALIGNMENT;
return IR_CALL;
case IR_VAR:
Expand Down

0 comments on commit 81ccde4

Please sign in to comment.