From: Jérémie Astor Date: Sat, 9 May 2020 16:24:54 +0000 (+0200) Subject: :art: More Ast cleaning X-Git-Tag: nightly~1622 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e65bd8cc58cb3e5b056f79c8baddf5641650c956;p=gwion.git :art: More Ast cleaning --- diff --git a/src/clean.c b/src/clean.c index 9b04359b..e1e58107 100644 --- a/src/clean.c +++ b/src/clean.c @@ -170,6 +170,8 @@ ANN static void clean_stmt_auto(Clean *a, Stmt_Auto b) { ++a->scope; clean_exp(a, b->exp); clean_stmt(a, b->body); + if(b->v) + REM_REF(b->v, a->gwion) --a->scope; }