From 20b861d805b6beea4f24f15e0ce314f8fa8d61d4 Mon Sep 17 00:00:00 2001 From: Vallahor Date: Fri, 3 Jun 2022 22:47:52 -0300 Subject: [PATCH] autodoc: fixing a bug in builtin functions when the typeRef is null --- src/Autodoc.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autodoc.zig b/src/Autodoc.zig index 42b433120b..c421c11a6c 100644 --- 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 }, }; },