diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-12 12:34:55 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-12 12:34:55 +0100 |
| commit | 33eeb5852190ea6a363eced57050ba739061a32b (patch) | |
| tree | bea04319c89a92b63793a18e0a93790737fa9d84 /src/ssa.cpp | |
| parent | 8fafdb185cefee691e1c2e1990abf8cd3c97ddf4 (diff) | |
Prefix `proc` syntax
Diffstat (limited to 'src/ssa.cpp')
| -rw-r--r-- | src/ssa.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ssa.cpp b/src/ssa.cpp index dd12832be..c048c298b 100644 --- a/src/ssa.cpp +++ b/src/ssa.cpp @@ -2435,12 +2435,12 @@ void ssa_build_proc(ssaModule *m, ssaProc *p) { p->module = m; m->proc = p; - if (p->decl_info->proc_lit == NULL || - p->decl_info->proc_lit->kind != AstNode_ProcLit) { + if (p->decl_info->proc_decl == NULL || + p->decl_info->proc_decl->kind != AstNode_ProcDecl) { return; } - ast_node(pl, ProcLit, p->decl_info->proc_lit); + ast_node(pl, ProcLit, p->decl_info->proc_decl); if (pl->body == NULL) { return; } @@ -2553,7 +2553,7 @@ bool ssa_generate(Parser *parser, CheckerInfo *info) { } break; case Entity_Procedure: { - ast_node(pd, ProcLit, decl->proc_lit); + ast_node(pd, ProcDecl, decl->proc_decl); String original_name = name; AstNode *body = pd->body; if (e->Procedure.is_foreign) { |