authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2023-06-14 13:24:47+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-16 13:44:25-07:00
log2af5bd8aa8711b2a6e60f961290372134090f235
treea77492de657f8a76c15bdeb443916490db79e1cd
parent259315606827620daaabf82b479e59ee710097cd

Autodoc: fix crash when walking `@min`/`@max` with two operands

This was causing CI failures after the previous commit.

1 files changed, 2 insertions(+), 2 deletions(-)

src/Autodoc.zig+2-2
...@@ -1494,8 +1494,6 @@ fn walkInstruction(...@@ -1494,8 +1494,6 @@ fn walkInstruction(
1494 .frame_type,1494 .frame_type,
1495 .frame_size,1495 .frame_size,
1496 .ptr_to_int,1496 .ptr_to_int,
1497 .min,
1498 .max,
1499 .bit_not,1497 .bit_not,
1500 // @check1498 // @check
1501 .clz,1499 .clz,
...@@ -1546,6 +1544,8 @@ fn walkInstruction(...@@ -1546,6 +1544,8 @@ fn walkInstruction(
1546 .offset_of,1544 .offset_of,
1547 .splat,1545 .splat,
1548 .reduce,1546 .reduce,
1547 .min,
1548 .max,
1549 => {1549 => {
1550 const pl_node = data[inst_index].pl_node;1550 const pl_node = data[inst_index].pl_node;
1551 const extra = file.zir.extraData(Zir.Inst.Bin, pl_node.payload_index);1551 const extra = file.zir.extraData(Zir.Inst.Bin, pl_node.payload_index);