]> Nishi Git Mirror - gwion.git/commitdiff
:art: Emit scoped func body
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Apr 2020 21:03:48 +0000 (23:03 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Apr 2020 21:03:55 +0000 (23:03 +0200)
src/emit/emit.c

index 84d3ef4bc6785ee470f6dd2337bbea9fb32e2189..219921b283134649f7b8cfa86519ff20a06c14e4 100644 (file)
@@ -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;
 }