Commit 84adbeb077

Andrew Kelley <andrew@ziglang.org>
2022-07-18 22:27:00
Autodoc: update to new array_type ZIR
1 parent 22d61fa
Changed files (1)
src/Autodoc.zig
@@ -1471,7 +1471,8 @@ fn walkInstruction(
             };
         },
         .array_type => {
-            const bin = data[inst_index].bin;
+            const pl_node = data[inst_index].pl_node;
+            const bin = file.zir.extraData(Zir.Inst.Bin, pl_node.payload_index).data;
             const len = try self.walkRef(file, parent_scope, bin.lhs, false);
             const child = try self.walkRef(file, parent_scope, bin.rhs, false);