| ... | ... | @@ -18026,8 +18026,7 @@ fn coerce( |
| 18026 | 18026 | const array_ty = inst_ty.childType(); |
| 18027 | 18027 | if (array_ty.zigTypeTag() != .Array) break :src_array_ptr; |
| 18028 | 18028 | const len0 = array_ty.arrayLen() == 0; |
| 18029 | | // We resolve here so that the backend has the layout of the elem type. |
| 18030 | | const array_elem_type = try sema.resolveTypeFields(block, inst_src, array_ty.childType()); |
| 18029 | const array_elem_type = array_ty.childType(); |
| 18031 | 18030 | const dest_is_mut = dest_info.mutable; |
| 18032 | 18031 | if (inst_ty.isConstPtr() and dest_is_mut and !len0) break :src_array_ptr; |
| 18033 | 18032 | if (inst_ty.isVolatilePtr() and !dest_info.@"volatile") break :src_array_ptr; |