diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-23 19:24:53 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-23 19:24:53 +0100 |
| commit | 382ca20916aaecd6f6b18ea1bd1b849aca2a4f13 (patch) | |
| tree | b226505dbbb2f42e47ccc267572554f77a67e6ba /src/check_stmt.cpp | |
| parent | fe2ad54f6074ad2fdd9e8107a4c6ca46b9a4922f (diff) | |
Correct procedure checking flag handling, and correct the (bodge) handle of unchecked procedure bodies
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index fc6dd757e..7b039e001 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -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) { |