From: Jérémie Astor Date: Mon, 13 Apr 2020 21:03:15 +0000 (+0200) Subject: :bomb: Returned Objects do not need ref X-Git-Tag: nightly~1695 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=09dfeddef5a3d37278c793911ed40c9dd9e15613;p=gwion.git :bomb: Returned Objects do not need ref --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 6a66eab4..84d3ef4b 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1297,8 +1297,6 @@ ANN static m_bool emit_stmt_return(const Emitter emit, const Stmt_Exp stmt) { if(stmt->val->exp_type == ae_exp_call && emit->env->func == stmt->val->d.exp_call.m_func) return optimize_taill_call(emit, &stmt->val->d.exp_call); CHECK_BB(emit_exp_pop_next(emit, stmt->val)) - if(isa(stmt->val->info->type, emit->gwion->type[et_object]) > 0) - (void)emit_addref(emit, 0); } vector_add(&emit->code->stack_return, (vtype)emit_add_instr(emit, Goto)); return GW_OK;