aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_proc.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-17 22:18:15 +0100
committergingerBill <bill@gingerbill.org>2023-07-17 22:18:15 +0100
commitb2c75dc3a22f72bcf7b4a47348bd46e4ddb05200 (patch)
tree5ad106eb1b3988e3db7dd040fb5661716893df03 /src/tilde_proc.cpp
parentb5b3f1fb421ee2c127d96719bfcf77c5ce7fa9e4 (diff)
Mostly fill in `cg_debug_type`
Diffstat (limited to 'src/tilde_proc.cpp')
-rw-r--r--src/tilde_proc.cpp2
1 files changed, 1 insertions, 1 deletions
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);