lang: codegen: fix instr gen duplicating left operand

This commit is contained in:
2025-08-16 21:00:50 +01:00
parent bda10b1166
commit adb326c795

View File

@@ -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);