| ... | @@ -32535,7 +32535,7 @@ fn elemPtrType(sema: *Sema, ptr_ty: Type, offset: ?usize) !Type { | ... | @@ -32535,7 +32535,7 @@ fn elemPtrType(sema: *Sema, ptr_ty: Type, offset: ?usize) !Type { |
| 32535 | } | 32535 | } |
| 32536 | // If the addend is not a comptime-known value we can still count on | 32536 | // If the addend is not a comptime-known value we can still count on |
| 32537 | // it being a multiple of the type size. | 32537 | // it being a multiple of the type size. |
| 32538 | const elem_size = elem_ty.abiSize(target); | 32538 | const elem_size = try sema.typeAbiSize(elem_ty); |
| 32539 | const addend = if (offset) |off| elem_size * off else elem_size; | 32539 | const addend = if (offset) |off| elem_size * off else elem_size; |
| 32540 | | 32540 | |
| 32541 | // The resulting pointer is aligned to the lcd between the offset (an | 32541 | // The resulting pointer is aligned to the lcd between the offset (an |