| ... | @@ -1373,12 +1373,18 @@ fn walkInstruction( | ... | @@ -1373,12 +1373,18 @@ fn walkInstruction( |
| 1373 | | 1373 | |
| 1374 | // return operand; | 1374 | // return operand; |
| 1375 | // }, | 1375 | // }, |
| 1376 | .ptr_type_simple => { | 1376 | .overflow_arithmetic_ptr => { |
| 1377 | const ptr = data[inst_index].ptr_type_simple; | 1377 | const un_node = data[inst_index].un_node; |
| 1378 | const elem_type_ref = try self.walkRef(file, parent_scope, ptr.elem_type, false); | 1378 | const elem_type_ref = try self.walkRef(file, parent_scope, un_node.operand, false); |
| 1379 | const type_slot_index = self.types.items.len; | 1379 | const type_slot_index = self.types.items.len; |
| 1380 | try self.types.append(self.arena, .{ | 1380 | try self.types.append(self.arena, .{ |
| 1381 | .Pointer = .{ .size = ptr.size, .child = elem_type_ref.expr, .is_mutable = ptr.is_mutable, .is_volatile = ptr.is_volatile, .is_allowzero = ptr.is_allowzero }, | 1381 | .Pointer = .{ |
| | 1382 | .size = .One, |
| | 1383 | .child = elem_type_ref.expr, |
| | 1384 | .is_mutable = true, |
| | 1385 | .is_volatile = false, |
| | 1386 | .is_allowzero = false, |
| | 1387 | }, |
| 1382 | }); | 1388 | }); |
| 1383 | | 1389 | |
| 1384 | return DocData.WalkResult{ | 1390 | return DocData.WalkResult{ |