From a6516914b7c5676eea9199ec4c3e55399de5765d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 13 May 2020 11:14:38 +0200 Subject: [PATCH] :art: Improve tial recursion --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0