diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-04 11:24:32 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-04 11:24:32 +0000 |
| commit | 915b5cdab7ae87ce38a6119f5c7e73aa0faaefa3 (patch) | |
| tree | b9548165db061f29208bc28f794d429781307a6f /src/checker/checker.c | |
| parent | c8f99b360f4c2c0f566c8e3b4ed9ab9a388687c3 (diff) | |
Rename llir -> ir
Diffstat (limited to 'src/checker/checker.c')
| -rw-r--r-- | src/checker/checker.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/checker/checker.c b/src/checker/checker.c index e25d6263c..3a19ec69c 100644 --- a/src/checker/checker.c +++ b/src/checker/checker.c @@ -52,7 +52,7 @@ typedef struct DeclInfo { AstNode *type_expr; AstNode *init_expr; - AstNode *proc_decl; // AstNode_ProcDecl + AstNode *proc_lit; // AstNode_ProcLit u32 var_decl_tags; MapBool deps; // Key: Entity * @@ -306,9 +306,9 @@ bool decl_info_has_init(DeclInfo *d) { if (d->init_expr != NULL) { return true; } - if (d->proc_decl != NULL) { - switch (d->proc_decl->kind) { - case_ast_node(pd, ProcLit, d->proc_decl); + if (d->proc_lit != NULL) { + switch (d->proc_lit->kind) { + case_ast_node(pd, ProcLit, d->proc_lit); if (pd->body != NULL) { return true; } @@ -1219,7 +1219,7 @@ void check_global_collect_entities_from_file(Checker *c, Scope *parent_scope, As d->init_expr = init; } else if (init != NULL && up_init->kind == AstNode_ProcLit) { e = make_entity_procedure(c->allocator, d->scope, name->Ident, NULL, up_init->ProcLit.tags); - d->proc_decl = init; + d->proc_lit = init; } else { e = make_entity_constant(c->allocator, d->scope, name->Ident, NULL, (ExactValue){0}); d->type_expr = vd->type; |