From e65bd8cc58cb3e5b056f79c8baddf5641650c956 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 9 May 2020 18:24:54 +0200 Subject: [PATCH] :art: More Ast cleaning --- src/clean.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.43.0