authorgravatar for vallahor91@gmail.comVallahor <vallahor91@gmail.com> 2022-06-03 22:47:52-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-19 19:10:12-07:00
log20b861d805b6beea4f24f15e0ce314f8fa8d61d4
tree87c41cfe9880d7aff6d3f5e43adf4ffa5584deda
parentf189e46b8e1ee7207febb667b79d2b8d1411f265

autodoc: fixing a bug in builtin functions when the typeRef is null


1 files changed, 1 insertions(+), 1 deletions(-)

src/Autodoc.zig+1-1
......@@ -1375,7 +1375,7 @@ fn walkInstruction(
13751375 self.exprs.items[bin_index] = .{ .builtin = .{ .name = @tagName(tags[inst_index]), .param = param_index } };
13761376
13771377 return DocData.WalkResult{
1378 .typeRef = param.typeRef,
1378 .typeRef = param.typeRef orelse .{ .type = @enumToInt(Ref.type_type) },
13791379 .expr = .{ .builtinIndex = bin_index },
13801380 };
13811381 },