Fix LLVM-API type cycle for procedures of named procedures

This commit is contained in:
gingerBill
2020-11-09 10:27:27 +00:00
parent 3d5e180dec
commit c26cb470a2
3 changed files with 24 additions and 4 deletions

View File

@@ -1370,7 +1370,8 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
// Sanity check
continue;
}
array_add(&param_types, lb_type(m, v->type));
LLVMTypeRef t = lb_type(m, v->type);
array_add(&param_types, t);
}
} else {
array_add(&param_types, lb_type(m, param));