| ... | @@ -225,8 +225,9 @@ static AstNode *create_fn_proto_node(Context *c, Buf *name, TypeTableEntry *fn_t | ... | @@ -225,8 +225,9 @@ static AstNode *create_fn_proto_node(Context *c, Buf *name, TypeTableEntry *fn_t |
| 225 | | 225 | |
| 226 | for (int i = 0; i < fn_type->data.fn.fn_type_id.param_count; i += 1) { | 226 | for (int i = 0; i < fn_type->data.fn.fn_type_id.param_count; i += 1) { |
| 227 | FnTypeParamInfo *info = &fn_type->data.fn.fn_type_id.param_info[i]; | 227 | FnTypeParamInfo *info = &fn_type->data.fn.fn_type_id.param_info[i]; |
| 228 | Buf *name = buf_sprintf("arg_%d", i); | 228 | char arg_name[20]; |
| 229 | node->data.fn_proto.params.append(create_param_decl_node(c, buf_ptr(name), | 229 | sprintf(arg_name, "arg_%d", i); |
| | 230 | node->data.fn_proto.params.append(create_param_decl_node(c, arg_name, |
| 230 | make_type_node(c, info->type), info->is_noalias)); | 231 | make_type_node(c, info->type), info->is_noalias)); |
| 231 | } | 232 | } |
| 232 | | 233 | |