| ... | @@ -1261,6 +1261,10 @@ void init_fn_type_id(FnTypeId *fn_type_id, AstNode *proto_node, size_t param_cou | ... | @@ -1261,6 +1261,10 @@ void init_fn_type_id(FnTypeId *fn_type_id, AstNode *proto_node, size_t param_cou |
| 1261 | fn_type_id->param_info = allocate_nonzero<FnTypeParamInfo>(param_count_alloc); | 1261 | fn_type_id->param_info = allocate_nonzero<FnTypeParamInfo>(param_count_alloc); |
| 1262 | fn_type_id->next_param_index = 0; | 1262 | fn_type_id->next_param_index = 0; |
| 1263 | fn_type_id->is_var_args = fn_proto->is_var_args; | 1263 | fn_type_id->is_var_args = fn_proto->is_var_args; |
| | 1264 | |
| | 1265 | // We set param_info to 0, as param_info[i]->type is checked for null |
| | 1266 | // when checking if a parameters type has been resolved. |
| | 1267 | memset(fn_type_id->param_info, 0, sizeof(fn_type_id->param_info[i]) * fn_type_id->param_count); |
| 1264 | } | 1268 | } |
| 1265 | | 1269 | |
| 1266 | static bool analyze_const_align(CodeGen *g, Scope *scope, AstNode *node, uint32_t *result) { | 1270 | static bool analyze_const_align(CodeGen *g, Scope *scope, AstNode *node, uint32_t *result) { |