]> Nishi Git Mirror - gwion.git/commitdiff
:art: More Ast cleaning
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 9 May 2020 16:24:54 +0000 (18:24 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 9 May 2020 16:24:54 +0000 (18:24 +0200)
src/clean.c

index 9b04359b20699e40b238463324b40e613e8bfd1e..e1e581076e54ac0a3d82d1ec244f2ee1baccc1f4 100644 (file)
@@ -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;
 }