| ... | @@ -30223,6 +30223,19 @@ fn checkPtrAttributes(sema: *Sema, dest_ty: Type, inst_ty: Type, in_memory_resul | ... | @@ -30223,6 +30223,19 @@ fn checkPtrAttributes(sema: *Sema, dest_ty: Type, inst_ty: Type, in_memory_resul |
| 30223 | } }; | 30223 | } }; |
| 30224 | return false; | 30224 | return false; |
| 30225 | } | 30225 | } |
| | 30226 | |
| | 30227 | if (inst_info.packed_offset.host_size != dest_info.packed_offset.host_size or |
| | 30228 | inst_info.packed_offset.bit_offset != dest_info.packed_offset.bit_offset) |
| | 30229 | { |
| | 30230 | in_memory_result.* = .{ .ptr_bit_range = .{ |
| | 30231 | .actual_host = inst_info.packed_offset.host_size, |
| | 30232 | .wanted_host = dest_info.packed_offset.host_size, |
| | 30233 | .actual_offset = inst_info.packed_offset.bit_offset, |
| | 30234 | .wanted_offset = dest_info.packed_offset.bit_offset, |
| | 30235 | } }; |
| | 30236 | return false; |
| | 30237 | } |
| | 30238 | |
| 30226 | if (inst_info.flags.alignment == .none and dest_info.flags.alignment == .none) return true; | 30239 | if (inst_info.flags.alignment == .none and dest_info.flags.alignment == .none) return true; |
| 30227 | if (len0) return true; | 30240 | if (len0) return true; |
| 30228 | | 30241 | |
| ... | @@ -30243,19 +30256,6 @@ fn checkPtrAttributes(sema: *Sema, dest_ty: Type, inst_ty: Type, in_memory_resul | ... | @@ -30243,19 +30256,6 @@ fn checkPtrAttributes(sema: *Sema, dest_ty: Type, inst_ty: Type, in_memory_resul |
| 30243 | } }; | 30256 | } }; |
| 30244 | return false; | 30257 | return false; |
| 30245 | } | 30258 | } |
| 30246 | | | |
| 30247 | if (inst_info.packed_offset.host_size != dest_info.packed_offset.host_size or | | |
| 30248 | inst_info.packed_offset.bit_offset != dest_info.packed_offset.bit_offset) | | |
| 30249 | { | | |
| 30250 | in_memory_result.* = .{ .ptr_bit_range = .{ | | |
| 30251 | .actual_host = inst_info.packed_offset.host_size, | | |
| 30252 | .wanted_host = dest_info.packed_offset.host_size, | | |
| 30253 | .actual_offset = inst_info.packed_offset.bit_offset, | | |
| 30254 | .wanted_offset = dest_info.packed_offset.bit_offset, | | |
| 30255 | } }; | | |
| 30256 | return false; | | |
| 30257 | } | | |
| 30258 | | | |
| 30259 | return true; | 30259 | return true; |
| 30260 | } | 30260 | } |
| 30261 | | 30261 | |