From: Jérémie Astor Date: Thu, 24 Mar 2022 10:27:18 +0000 (+0100) Subject: :bug: re-allow tests on late values X-Git-Tag: nightly~359 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=32d5105c7abc236d5e283d3c8b7cf2c2252810cf;p=gwion.git :bug: re-allow tests on late values --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 96b32315..6a138250 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1959,6 +1959,11 @@ ANN static m_bool emit_implicit_cast(const Emitter emit, ANN2(1,2) static Instr _flow(const Emitter emit, const Exp e, Instr *const instr, const bool b) { // CHECK_BO(emit_exp_pop_next(emit, e)); CHECK_BO(emit_exp(emit, e)); + { + const Instr instr = (Instr)vector_back(&emit->code->instr); + if(instr->execute == fast_except) + vector_rem(&emit->code->instr, vector_size(&emit->code->instr) - 1); + } if(instr) *instr = emit_add_instr(emit, NoOp); // emit_exp_addref1(emit, e, -exp_size(e)); // ????