diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-29 20:49:29 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 6927b6338b9655974db79c429e6ffc73037ab5e0 (patch) | |
tree | 269b4a096fcd38432fc709a72b6e872334652403 /src/compiler.c | |
parent | fe9971d379766a4f7d4576495caff9ffaa80cfef (diff) |
Fix ssa call, use correct tokenizer in error
Diffstat (limited to 'src/compiler.c')
-rw-r--r-- | src/compiler.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compiler.c b/src/compiler.c index 1feaf86..c9ae09a 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -208,7 +208,6 @@ static void* thread_callback_parse_file(void *userdata) { static CHECK_RESULT int thread_resolve_ast(amal_compiler *compiler, Parser *parser) { AstCompilerContext compiler_context; int result; - compiler_context.parser = parser; compiler_context.compiler = compiler; compiler_context.scope = NULL; result = setjmp(compiler_context.env); @@ -222,7 +221,6 @@ static CHECK_RESULT int thread_resolve_ast(amal_compiler *compiler, Parser *pars static CHECK_RESULT int thread_generate_ssa(Parser *parser) { SsaCompilerContext compiler_context; int result; - compiler_context.parser = parser; result = setjmp(compiler_context.env); if(result == 0) { return_if_error(ssa_init(&compiler_context.ssa, parser->allocator)); |