aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ast.c b/src/ast.c
index 079d45a..cfc1369 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -54,6 +54,7 @@ BufferView ast_get_name(Ast *self) {
}
int funcdecl_init(FunctionDecl *self, ScopedAllocator *allocator) {
+ self->ssa_func_index = 0;
return scope_init(&self->body, allocator);
}
@@ -223,5 +224,6 @@ void ast_resolve(Ast *self, AstCompilerContext *context) {
binop_resolve(self->value.binop, context);
break;
}
- /*self->resolve_status = AST_RESOLVED;*/
+ /* TODO: See comment at the top of this function */
+ self->resolve_status = AST_RESOLVED;
}