| ... | @@ -737,7 +737,11 @@ static void ir_print_fn_proto(IrPrint *irp, IrInstructionFnProto *instruction) { | ... | @@ -737,7 +737,11 @@ static void ir_print_fn_proto(IrPrint *irp, IrInstructionFnProto *instruction) { |
| 737 | for (size_t i = 0; i < instruction->base.source_node->data.fn_proto.params.length; i += 1) { | 737 | for (size_t i = 0; i < instruction->base.source_node->data.fn_proto.params.length; i += 1) { |
| 738 | if (i != 0) | 738 | if (i != 0) |
| 739 | fprintf(irp->f, ","); | 739 | fprintf(irp->f, ","); |
| 740 | ir_print_other_instruction(irp, instruction->param_types[i]); | 740 | if (instruction->is_var_args && i == instruction->base.source_node->data.fn_proto.params.length - 1) { |
| | 741 | fprintf(irp->f, "..."); |
| | 742 | } else { |
| | 743 | ir_print_other_instruction(irp, instruction->param_types[i]); |
| | 744 | } |
| 741 | } | 745 | } |
| 742 | fprintf(irp->f, ")->"); | 746 | fprintf(irp->f, ")->"); |
| 743 | ir_print_other_instruction(irp, instruction->return_type); | 747 | ir_print_other_instruction(irp, instruction->return_type); |