summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index 0d403a6..40cdb1c 100644
--- a/parser.c
+++ b/parser.c
@@ -460,9 +460,9 @@ static bool parse_root(struct root_node* p_node) {
void parse(const char* path, struct ast* ast) {
lexer_load(path);
scope_push(&scope);
- scope_install_default_types(scope);
-
ast->root_scope = scope;
+ scope_install_default_types(ast);
+
struct root_node** p_node = &ast->root_node;
for (;;) {