| ... | @@ -9132,6 +9132,7 @@ fn coerce( | ... | @@ -9132,6 +9132,7 @@ fn coerce( |
| 9132 | const dest_is_mut = !dest_type.isConstPtr(); | 9132 | const dest_is_mut = !dest_type.isConstPtr(); |
| 9133 | if (inst_ty.isConstPtr() and dest_is_mut) break :src_array_ptr; | 9133 | if (inst_ty.isConstPtr() and dest_is_mut) break :src_array_ptr; |
| 9134 | if (inst_ty.isVolatilePtr() and !dest_type.isVolatilePtr()) break :src_array_ptr; | 9134 | if (inst_ty.isVolatilePtr() and !dest_type.isVolatilePtr()) break :src_array_ptr; |
| | 9135 | if (inst_ty.ptrAddressSpace() != dest_type.ptrAddressSpace()) break :src_array_ptr; |
| 9135 | | 9136 | |
| 9136 | const dst_elem_type = dest_type.elemType(); | 9137 | const dst_elem_type = dest_type.elemType(); |
| 9137 | switch (coerceInMemoryAllowed(dst_elem_type, array_elem_type, dest_is_mut)) { | 9138 | switch (coerceInMemoryAllowed(dst_elem_type, array_elem_type, dest_is_mut)) { |