aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVallahor <vallahor91@gmail.com>2022-06-03 22:47:52 -0300
committerAndrew Kelley <andrew@ziglang.org>2022-07-19 19:10:12 -0700
commit20b861d805b6beea4f24f15e0ce314f8fa8d61d4 (patch)
tree87c41cfe9880d7aff6d3f5e43adf4ffa5584deda /src
parentf189e46b8e1ee7207febb667b79d2b8d1411f265 (diff)
downloadzig-20b861d805b6beea4f24f15e0ce314f8fa8d61d4.tar.gz
zig-20b861d805b6beea4f24f15e0ce314f8fa8d61d4.zip
autodoc: fixing a bug in builtin functions when the typeRef is null
Diffstat (limited to 'src')
-rw-r--r--src/Autodoc.zig2
1 files changed, 1 insertions, 1 deletions
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 },
};
},