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