const Instr s1 = emit_add_instr(emit, MemSetImm);
emit_push_stack(emit);
Instr cpy = stmt->is_ptr ? emit_stmt_autoptr_init(emit, stmt->v->type) : NULL;
- emit_local(emit, emit->gwion->type[et_int]);
+ emit_local(emit, emit->gwion->type[et_int]); // is ptr released?
const m_uint offset = emit_local(emit, emit->gwion->type[et_int]);
stmt->v->from->offset = offset + SZ_INT;
const m_uint ini_pc = emit_code_size(emit);
end->m_val = emit_code_size(emit);
tgt->m_val = ini_pc;
s1->m_val = loop->m_val = offset;
- if(stmt->is_ptr)
- emit_add_instr(emit, ObjectRelease);
regpop(emit, SZ_INT);
emit_pop_stack(emit, end_pc);
return GW_OK;