From: Jérémie Astor Date: Tue, 26 May 2020 20:40:31 +0000 (+0200) Subject: :bug: Exp_If emits pop_next X-Git-Tag: nightly~1505 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9b35f6834f6fdff250010d719d91c34688dd6ef4;p=gwion.git :bug: Exp_If emits pop_next --- 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; }