From 9b35f6834f6fdff250010d719d91c34688dd6ef4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 26 May 2020 22:40:31 +0200 Subject: [PATCH] :bug: Exp_If emits pop_next --- src/emit/emit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index c42789ef..1341f71a 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1244,10 +1244,10 @@ ANN static Instr _flow(const Emitter emit, const Exp e, const m_bool b) { ANN static m_bool emit_exp_if(const Emitter emit, const Exp_If* exp_if) { const Instr op = emit_flow(emit, exp_if->cond); - CHECK_BB(emit_exp(emit, exp_if->if_exp ?: exp_if->cond)) + CHECK_BB(emit_exp_pop_next(emit, exp_if->if_exp ?: exp_if->cond)) const Instr op2 = emit_add_instr(emit, Goto); op->m_val = emit_code_size(emit); - const m_bool ret = emit_exp(emit, exp_if->else_exp); + const m_bool ret = emit_exp_pop_next(emit, exp_if->else_exp); op2->m_val = emit_code_size(emit); return ret; } -- 2.43.0