From b2c75dc3a22f72bcf7b4a47348bd46e4ddb05200 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 17 Jul 2023 22:18:15 +0100 Subject: Mostly fill in `cg_debug_type` --- src/tilde_proc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tilde_proc.cpp') diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp index af9bee189..49af695ee 100644 --- a/src/tilde_proc.cpp +++ b/src/tilde_proc.cpp @@ -409,7 +409,7 @@ gb_internal void cg_procedure_begin(cgProcedure *p) { } // TB_Node *ptr = tb_inst_param_addr(p->func, param_index); - TB_Node *param = tb_inst_param(p->func, param_index); + TB_Node *param = tb_inst_param(p->func, param_index++); TB_Node *ptr = tb_inst_local(p->func, cast(TB_CharUnits)type_size_of(e->type), cast(TB_CharUnits)type_align_of(e->type)); TB_DataType dt = cg_data_type(e->type); tb_inst_store(p->func, dt, ptr, param, cast(TB_CharUnits)type_align_of(e->type), false); -- cgit v1.2.3