fix(arc): address compiler regression (#141)

This commit is contained in:
Edo 2023-07-28 08:22:33 +02:00 committed by GitHub
parent 91adc1a764
commit 654ffb2a55

View File

@ -1521,6 +1521,7 @@ auto compiler::emit_expr_field_ref(expr_field const& exp, bool set) -> void
break; break;
case node::expr_identifier: case node::expr_identifier:
emit_opcode(opcode::OP_EvalLocalVariableCached, fmt::format("{}", variable_access(exp.obj->as<expr_identifier>()))); emit_opcode(opcode::OP_EvalLocalVariableCached, fmt::format("{}", variable_access(exp.obj->as<expr_identifier>())));
emit_opcode(opcode::OP_CastFieldObject);
emit_opcode(opcode::OP_EvalFieldVariableRef, field); emit_opcode(opcode::OP_EvalFieldVariableRef, field);
if (set) emit_opcode(opcode::OP_SetVariableField); if (set) emit_opcode(opcode::OP_SetVariableField);
break; break;