From 15d49ed7397bfebf8638d218f6a6e1b2d185c357 Mon Sep 17 00:00:00 2001 From: Mikulas Patocka Date: Mon, 14 Oct 2024 22:09:25 +0200 Subject: [PATCH] codegen: fix incorrect calling sequence in gen_array_fill --- codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen.c b/codegen.c index ec63dbd..c88bed9 100644 --- a/codegen.c +++ b/codegen.c @@ -8583,10 +8583,10 @@ static bool attr_w gen_array_fill(struct codegen_context *ctx, frame_t slot_1, f g(gen_frame_get(ctx, OP_SIZE_INT, true, slot_2, 0, R_SCRATCH_4, ®4)); g(gen_jmp_if_negative(ctx, reg4, escape_label)); + g(gen_upcall_start(ctx, 3)); g(gen_mov(ctx, i_size(OP_SIZE_INT), R_ARG1, reg4)); g(gen_upcall_argument(ctx, 1)); - g(gen_upcall_start(ctx, 3)); g(gen_mov(ctx, i_size(OP_SIZE_ADDRESS), R_ARG0, R_FRAME)); g(gen_upcall_argument(ctx, 0)); -- 2.11.4.GIT