ox

The Ox programming language, compiler and tools (WIP)
Log | Files | Refs | README | LICENSE

commit e4383a075dc0b28c4d1c1fc610a9e15b00e6f21a
parent ed4e141792e06b134394727a0c8f8e107c8d0afd
Author: citbl <citbl@citbl.org>
Date:   Mon, 13 Oct 2025 21:13:27 +1000

minor

Diffstat:
Msrc/gen/gen.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gen/gen.c b/src/gen/gen.c @@ -365,8 +365,8 @@ build_func_decl(Gen* gen, Node* node) { const char* func_name = span_str(gen->src, node->data.function_decl.name, (char[IDENTSZ]) { 0 }); - auto ret_type = ox_type_to_c_type(gen, node->data.function_decl.return_type); - auto loc = loc_from_node(gen, node); + gcc_jit_type* ret_type = ox_type_to_c_type(gen, node->data.function_decl.return_type); + gcc_jit_location* loc = loc_from_node(gen, node); gcc_jit_function* func = gcc_jit_context_new_function(gen->ctx, loc, @@ -387,7 +387,7 @@ build_func_decl(Gen* gen, Node* node) build_block(gen, node->data.function_decl.body); if (gen->curr_block && ret_type == type_int) { - auto ret_value = gcc_jit_context_new_rvalue_from_int(gen->ctx, type_int, 0); + gcc_jit_rvalue* ret_value = gcc_jit_context_new_rvalue_from_int(gen->ctx, type_int, 0); gcc_jit_block_end_with_return(gen->curr_block, loc, ret_value); } else { gcc_jit_block_end_with_void_return(gen->curr_block, loc);