From 7f524c427597cc998f243769b0e22e4f450c55cf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 24 Apr 2019 21:22:53 +0200 Subject: Progressing on bytecode (to c), fix ssa resolving multiple times --- src/compiler.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler.c') diff --git a/src/compiler.c b/src/compiler.c index 3a921c3..30a583a 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -464,6 +464,7 @@ static CHECK_RESULT int try_create_file_scope(amal_compiler *compiler, const cha result_path = NULL; *new_entry = bool_false; + /* TODO: Optimize. No need to allocate everytime... */ return_if_error(file_get_canonical_path(filepath, &result_path, &result_path_size)); path_view = create_buffer_view(result_path, result_path_size); cleanup_if_error(amal_mutex_lock(&compiler->mutex, "try_create_file_scope")); -- cgit v1.2.3