| ... | @@ -1640,7 +1640,9 @@ const NavGen = struct { | ... | @@ -1640,7 +1640,9 @@ const NavGen = struct { |
| 1640 | // can be lowered to ptrAccessChain instead of manually performing the math. | 1640 | // can be lowered to ptrAccessChain instead of manually performing the math. |
| 1641 | return try self.arrayType(1, elem_ty_id); | 1641 | return try self.arrayType(1, elem_ty_id); |
| 1642 | } else { | 1642 | } else { |
| 1643 | return try self.arrayType(total_len, elem_ty_id); | 1643 | const result_id = try self.arrayType(total_len, elem_ty_id); |
| | 1644 | try self.spv.decorate(result_id, .{ .ArrayStride = .{ .array_stride = @intCast(elem_ty.abiSize(zcu)) } }); |
| | 1645 | return result_id; |
| 1644 | } | 1646 | } |
| 1645 | }, | 1647 | }, |
| 1646 | .@"fn" => switch (repr) { | 1648 | .@"fn" => switch (repr) { |