From adb326c79524bdc8ed62ffaf4aeb1ba028a3dc68 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 16 Aug 2025 21:00:50 +0100 Subject: [PATCH] lang: codegen: fix instr gen duplicating left operand --- lang/codegen/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/codegen/expr.c b/lang/codegen/expr.c index 7198f1e..26538fd 100644 --- a/lang/codegen/expr.c +++ b/lang/codegen/expr.c @@ -388,7 +388,7 @@ static enum ivy_status state_fini( = b_unbox(struct expr_item, right_entry, i_entry); struct mie_value *left_value = left->i_value; - struct mie_value *right_value = left->i_value; + struct mie_value *right_value = right->i_value; if (left->i_operand_type == EXPR_OPERAND_VAR) { left_value = codegen_load_variable(gen, &left->i_var);