| ... | ... | @@ -10402,6 +10402,7 @@ static Error ir_exec_scan_for_side_effects(CodeGen *codegen, IrExecutableGen *ex |
| 10402 | 10402 | if (instr_is_comptime(instruction)) { |
| 10403 | 10403 | switch (instruction->id) { |
| 10404 | 10404 | case IrInstGenIdUnwrapErrPayload: |
| 10405 | case IrInstGenIdOptionalUnwrapPtr: |
| 10405 | 10406 | case IrInstGenIdUnionFieldPtr: |
| 10406 | 10407 | continue; |
| 10407 | 10408 | default: |
| ... | ... | @@ -18671,7 +18672,7 @@ static IrInstGen *ir_resolve_result(IrAnalyze *ira, IrInst *suspend_source_instr |
| 18671 | 18672 | { |
| 18672 | 18673 | bool same_comptime_repr = types_have_same_zig_comptime_repr(ira->codegen, actual_elem_type, value_type); |
| 18673 | 18674 | if (!same_comptime_repr) { |
| 18674 | | result_loc_pass1->written = false; |
| 18675 | result_loc_pass1->written = was_written; |
| 18675 | 18676 | return ir_analyze_unwrap_optional_payload(ira, suspend_source_instr, result_loc, false, true); |
| 18676 | 18677 | } |
| 18677 | 18678 | } else if (actual_elem_type->id == ZigTypeIdErrorUnion && value_type->id != ZigTypeIdErrorUnion) { |
| ... | ... | @@ -29971,7 +29972,6 @@ bool ir_inst_gen_has_side_effects(IrInstGen *instruction) { |
| 29971 | 29972 | case IrInstGenIdReturnPtr: |
| 29972 | 29973 | case IrInstGenIdStructFieldPtr: |
| 29973 | 29974 | case IrInstGenIdTestNonNull: |
| 29974 | | case IrInstGenIdOptionalUnwrapPtr: |
| 29975 | 29975 | case IrInstGenIdClz: |
| 29976 | 29976 | case IrInstGenIdCtz: |
| 29977 | 29977 | case IrInstGenIdPopCount: |
| ... | ... | @@ -30028,6 +30028,8 @@ bool ir_inst_gen_has_side_effects(IrInstGen *instruction) { |
| 30028 | 30028 | return reinterpret_cast<IrInstGenUnwrapErrCode *>(instruction)->initializing; |
| 30029 | 30029 | case IrInstGenIdUnionFieldPtr: |
| 30030 | 30030 | return reinterpret_cast<IrInstGenUnionFieldPtr *>(instruction)->initializing; |
| 30031 | case IrInstGenIdOptionalUnwrapPtr: |
| 30032 | return reinterpret_cast<IrInstGenOptionalUnwrapPtr *>(instruction)->initializing; |
| 30031 | 30033 | case IrInstGenIdErrWrapPayload: |
| 30032 | 30034 | return reinterpret_cast<IrInstGenErrWrapPayload *>(instruction)->result_loc != nullptr; |
| 30033 | 30035 | case IrInstGenIdErrWrapCode: |