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

This commit is contained in:
Vallahor 2022-06-03 22:47:52 -03:00 committed by Andrew Kelley
parent f189e46b8e
commit 20b861d805

View File

@ -1375,7 +1375,7 @@ fn walkInstruction(
self.exprs.items[bin_index] = .{ .builtin = .{ .name = @tagName(tags[inst_index]), .param = param_index } }; self.exprs.items[bin_index] = .{ .builtin = .{ .name = @tagName(tags[inst_index]), .param = param_index } };
return DocData.WalkResult{ return DocData.WalkResult{
.typeRef = param.typeRef, .typeRef = param.typeRef orelse .{ .type = @enumToInt(Ref.type_type) },
.expr = .{ .builtinIndex = bin_index }, .expr = .{ .builtinIndex = bin_index },
}; };
}, },