From: Jérémie Astor Date: Mon, 13 Apr 2020 21:03:48 +0000 (+0200) Subject: :art: Emit scoped func body X-Git-Tag: nightly~1694 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5a6e8ebf66695da0c6885b2e9f8866e12012b33a;p=gwion.git :art: Emit scoped func body --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 84d3ef4b..219921b2 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1788,7 +1788,7 @@ ANN static m_bool emit_func_def_body(const Emitter emit, const Func_Def fdef) { if(GET_FLAG(fdef, variadic)) stack_alloc(emit); if(fdef->d.code) - CHECK_BB(emit_stmt_code(emit, &fdef->d.code->d.stmt_code)) + CHECK_BB(scoped_stmt(emit, fdef->d.code, 1)) emit_func_def_ensure(emit, fdef); return GW_OK; }