| ... | ... | @@ -839,10 +839,13 @@ pub const DeclGen = struct { |
| 839 | 839 | try w.writeAll("("); |
| 840 | 840 | const param_len = dg.decl.ty.fnParamLen(); |
| 841 | 841 | |
| 842 | const target = dg.module.getTarget(); |
| 842 | 843 | var index: usize = 0; |
| 843 | 844 | var params_written: usize = 0; |
| 844 | 845 | while (index < param_len) : (index += 1) { |
| 845 | | if (dg.decl.ty.fnParamType(index).zigTypeTag() == .Void) continue; |
| 846 | const param_type = dg.decl.ty.fnParamType(index); |
| 847 | if (param_type.zigTypeTag() == .Void) continue; |
| 848 | if (param_type.isInt() and param_type.intInfo(target).bits == 0) continue; |
| 846 | 849 | if (params_written > 0) { |
| 847 | 850 | try w.writeAll(", "); |
| 848 | 851 | } |