From 84adbeb0773dd1375ea0d8106a0845022531110c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 18 Jul 2022 13:27:00 -0700 Subject: [PATCH] Autodoc: update to new array_type ZIR --- src/Autodoc.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Autodoc.zig b/src/Autodoc.zig index 3fa3912a5..130533e3d 100644 --- a/src/Autodoc.zig +++ b/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);