Commit a035d75a17

Andrew Kelley <andrew@ziglang.org>
2022-07-23 06:24:19
Autodoc: update to new ZIR
Fixes a merge conflict with 8e75ba653b03477229cf72211e8a8bfe7b071254 which removed ptr_type_simple and added overflow_arithmetic_ptr.
1 parent 7502e49
Changed files (1)
src/Autodoc.zig
@@ -1373,12 +1373,18 @@ fn walkInstruction(
 
         //     return operand;
         // },
-        .ptr_type_simple => {
-            const ptr = data[inst_index].ptr_type_simple;
-            const elem_type_ref = try self.walkRef(file, parent_scope, ptr.elem_type, false);
+        .overflow_arithmetic_ptr => {
+            const un_node = data[inst_index].un_node;
+            const elem_type_ref = try self.walkRef(file, parent_scope, un_node.operand, false);
             const type_slot_index = self.types.items.len;
             try self.types.append(self.arena, .{
-                .Pointer = .{ .size = ptr.size, .child = elem_type_ref.expr, .is_mutable = ptr.is_mutable, .is_volatile = ptr.is_volatile, .is_allowzero = ptr.is_allowzero },
+                .Pointer = .{
+                    .size = .One,
+                    .child = elem_type_ref.expr,
+                    .is_mutable = true,
+                    .is_volatile = false,
+                    .is_allowzero = false,
+                },
             });
 
             return DocData.WalkResult{