Commit 20b861d805

Vallahor <vallahor91@gmail.com>
2022-06-04 03:47:52
autodoc: fixing a bug in builtin functions when the typeRef is null
1 parent f189e46
Changed files (1)
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 },
             };
         },