| ... | ... | @@ -6382,34 +6382,6 @@ pub const FuncGen = struct { |
| 6382 | 6382 | const elem_alignment = elem_ty.abiAlignment(mod).toLlvm(); |
| 6383 | 6383 | return self.loadByRef(elem_ptr, elem_ty, elem_alignment, .normal); |
| 6384 | 6384 | } else { |
| 6385 | | if (bin_op.lhs.toIndex()) |lhs_index| { |
| 6386 | | if (self.air.instructions.items(.tag)[@intFromEnum(lhs_index)] == .load) { |
| 6387 | | const load_data = self.air.instructions.items(.data)[@intFromEnum(lhs_index)]; |
| 6388 | | const load_ptr = load_data.ty_op.operand; |
| 6389 | | if (load_ptr.toIndex()) |load_ptr_index| { |
| 6390 | | const load_ptr_tag = self.air.instructions.items(.tag)[@intFromEnum(load_ptr_index)]; |
| 6391 | | switch (load_ptr_tag) { |
| 6392 | | .struct_field_ptr, |
| 6393 | | .struct_field_ptr_index_0, |
| 6394 | | .struct_field_ptr_index_1, |
| 6395 | | .struct_field_ptr_index_2, |
| 6396 | | .struct_field_ptr_index_3, |
| 6397 | | => { |
| 6398 | | const load_ptr_inst = try self.resolveInst(load_ptr); |
| 6399 | | const gep = try self.wip.gep( |
| 6400 | | .inbounds, |
| 6401 | | array_llvm_ty, |
| 6402 | | load_ptr_inst, |
| 6403 | | &indices, |
| 6404 | | "", |
| 6405 | | ); |
| 6406 | | return self.loadTruncate(.normal, elem_ty, gep, .default); |
| 6407 | | }, |
| 6408 | | else => {}, |
| 6409 | | } |
| 6410 | | } |
| 6411 | | } |
| 6412 | | } |
| 6413 | 6385 | const elem_ptr = |
| 6414 | 6386 | try self.wip.gep(.inbounds, array_llvm_ty, array_llvm_val, &indices, ""); |
| 6415 | 6387 | return self.loadTruncate(.normal, elem_ty, elem_ptr, .default); |