Fixes to debug info in function pointer declarations. Incorrect x64 ABI code for structs by val. Change "Compiler" to "GlobalContext" storage of all types inside. Call debug symbol correct.

This commit is contained in:
Christoffer Lerno
2021-05-02 16:42:28 +02:00
parent c6f671a6ca
commit 3bd638bf77
17 changed files with 80 additions and 84 deletions

View File

@@ -65,9 +65,10 @@ void gencontext_begin_module(GenContext *c)
c->block_global_unique_count = 0;
c->ast_alloca_addr_space = target_alloca_addr_space();
VECEACH(compiler.type, i)
VECEACH(global_context.type, i)
{
compiler.type[i]->backend_type = NULL;
global_context.type[i]->backend_type = NULL;
global_context.type[i]->backend_debug_type = NULL;
}
}