| ... | ... | @@ -12694,7 +12694,12 @@ fn finishStructInit( |
| 12694 | 12694 | } |
| 12695 | 12695 | |
| 12696 | 12696 | if (is_ref) { |
| 12697 | | const alloc = try block.addTy(.alloc, struct_ty); |
| 12697 | const target = sema.mod.getTarget(); |
| 12698 | const alloc_ty = try Type.ptr(sema.arena, target, .{ |
| 12699 | .pointee_type = struct_ty, |
| 12700 | .@"addrspace" = target_util.defaultAddressSpace(target, .local), |
| 12701 | }); |
| 12702 | const alloc = try block.addTy(.alloc, alloc_ty); |
| 12698 | 12703 | for (field_inits) |field_init, i_usize| { |
| 12699 | 12704 | const i = @intCast(u32, i_usize); |
| 12700 | 12705 | const field_src = src; |