Correct procedure checking flag handling, and correct the (bodge) handle of unchecked procedure bodies

This commit is contained in:
gingerBill
2021-08-23 19:24:53 +01:00
parent fe2ad54f60
commit 382ca20916
6 changed files with 58 additions and 28 deletions
+3
View File
@@ -2189,6 +2189,9 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
}
entity->parent_proc_decl = ctx->curr_proc_decl;
entities[entity_count++] = entity;
if (name->kind == Ast_Ident) {
name->Ident.entity = entity;
}
}
if (new_name_count == 0) {