Fix codegen scope names

This commit is contained in:
Krzosa Karol
2022-06-13 20:35:45 +02:00
parent 2c431e3207
commit 30f448a490
3 changed files with 3 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ function void
gen_expr(Ast_Expr *ast){
switch(ast->kind){
CASE(IDENT, Atom){
gen_scope_name(node->parent_scope);
gen_scope_name(node->resolved_decl->parent_scope);
gen("%s", node->intern_val.str);
BREAK();
}