From 3fcd0097dc815619e866bd2e68a4abc469c03083 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 3 Mar 2020 16:47:50 +0100 Subject: [PATCH] :art: Remove useless gack instructions --- src/emit/emit.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; -- 2.43.0