mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 17:53:07 +00:00
autodoc: fixing a bug in builtin functions when the typeRef is null
This commit is contained in:
parent
f189e46b8e
commit
20b861d805
@ -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 },
|
||||
};
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user