From 32d5105c7abc236d5e283d3c8b7cf2c2252810cf Mon Sep 17 00:00:00 2001
From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= <fennecdjay@gmail.com>
Date: Thu, 24 Mar 2022 11:27:18 +0100
Subject: [PATCH] :bug: re-allow tests on late values

---
 src/emit/emit.c | 5 +++++
 1 file changed, 5 insertions(+)

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)); // ????
-- 
2.43.0