From 6385450ddba34bc28bd7492d126fd38cb3f86f36 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 12 Aug 2024 19:01:21 +0300 Subject: make id scope point to defining scope + Allows defers to refer to the correct scope, but might be a bit surprising since effectively all other nodes use the scope to refer to the containing scope rather than the defining scope. --- src/ast.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ast.c') diff --git a/src/ast.c b/src/ast.c index c36d7a7..aeb8c69 100644 --- a/src/ast.c +++ b/src/ast.c @@ -396,7 +396,6 @@ struct ast *clone_ast(struct ast *n) assert(n->k); struct ast *new = create_empty_ast(); new->scope = n->scope; - new->uses = n->uses; new->loc = n->loc; new->k = n->k; new->v = n->v; -- cgit v1.3