From: Jérémie Astor Date: Tue, 3 Mar 2020 15:47:50 +0000 (+0100) Subject: :art: Remove useless gack instructions X-Git-Tag: nightly~1726^2~51 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=3fcd0097dc815619e866bd2e68a4abc469c03083;p=gwion.git :art: Remove useless gack instructions --- diff --git a/src/emit/emit.c b/src/emit/emit.c index f002c3a4..2a73a28c 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -619,12 +619,9 @@ ANN static m_bool emit_interp(const Emitter emit, const Exp exp) { return GW_ERROR; } regseti(emit, (m_uint)e->type); - if(isa(e->type, emit->gwion->type[et_object]) > 0 && !GET_FLAG(e->type, force)) { - emit_add_instr(emit, GackType); - } - const Instr instr = emit_add_instr(emit, Gack); if(isa(e->type, emit->gwion->type[et_object]) > 0 && !GET_FLAG(e->type, force)) emit_add_instr(emit, GackType); + const Instr instr = emit_add_instr(emit, Gack); instr->m_val = emit_code_offset(emit); } while((e = e->next = next)); return GW_OK;