From: Jérémie Astor Date: Wed, 13 May 2020 09:14:38 +0000 (+0200) Subject: :art: Improve tial recursion X-Git-Tag: nightly~1567 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a6516914b7c5676eea9199ec4c3e55399de5765d;p=gwion.git :art: Improve tial recursion --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 7d9cf851..284fc4b0 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1316,7 +1316,7 @@ ANN static m_bool emit_stmt_code(const Emitter emit, const Stmt_Code stmt) { ANN static m_bool optimize_taill_call(const Emitter emit, const Exp_Call* e) { if(e->args) { - CHECK_BB(emit_exp(emit, e->args)) + emit_func_args(emit, e); regpop(emit, e->m_func->def->stack_depth); emit_args(emit, e->m_func); }