]> Nishi Git Mirror - gwion.git/commitdiff
:bug: re-allow tests on late values
authorJérémie Astor <fennecdjay@gmail.com>
Thu, 24 Mar 2022 10:27:18 +0000 (11:27 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Thu, 24 Mar 2022 10:27:18 +0000 (11:27 +0100)
src/emit/emit.c

index 96b323152878464d11435f1ea2cd71774afc5ec3..6a138250c0dfbbd95d7616d18a3847b473d0e7ca 100644 (file)
@@ -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)); // ????