zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 20b861d805b6beea4f24f15e0ce314f8fa8d61d4 (tree)
parent f189e46b8e1ee7207febb667b79d2b8d1411f265
Author: Vallahor <vallahor91@gmail.com>
Date:   Fri,  3 Jun 2022 22:47:52 -0300

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

Diffstat:
Msrc/Autodoc.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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