| ... | @@ -23287,8 +23287,7 @@ fn panicWithMsg( | ... | @@ -23287,8 +23287,7 @@ fn panicWithMsg( |
| 23287 | const arena = sema.arena; | 23287 | const arena = sema.arena; |
| 23288 | | 23288 | |
| 23289 | if (!mod.backendSupportsFeature(.panic_fn)) { | 23289 | if (!mod.backendSupportsFeature(.panic_fn)) { |
| 23290 | _ = try block.addNoOp(.breakpoint); | 23290 | _ = try block.addNoOp(.trap); |
| 23291 | _ = try block.addNoOp(.unreach); | | |
| 23292 | return; | 23291 | return; |
| 23293 | } | 23292 | } |
| 23294 | const panic_fn = try sema.getBuiltin("panic"); | 23293 | const panic_fn = try sema.getBuiltin("panic"); |
| ... | @@ -23336,8 +23335,7 @@ fn panicUnwrapError( | ... | @@ -23336,8 +23335,7 @@ fn panicUnwrapError( |
| 23336 | | 23335 | |
| 23337 | { | 23336 | { |
| 23338 | if (!sema.mod.backendSupportsFeature(.panic_unwrap_error)) { | 23337 | if (!sema.mod.backendSupportsFeature(.panic_unwrap_error)) { |
| 23339 | _ = try fail_block.addNoOp(.breakpoint); | 23338 | _ = try fail_block.addNoOp(.trap); |
| 23340 | _ = try fail_block.addNoOp(.unreach); | | |
| 23341 | } else { | 23339 | } else { |
| 23342 | const panic_fn = try sema.getBuiltin("panicUnwrapError"); | 23340 | const panic_fn = try sema.getBuiltin("panicUnwrapError"); |
| 23343 | const err = try fail_block.addTyOp(unwrap_err_tag, Type.anyerror, operand); | 23341 | const err = try fail_block.addTyOp(unwrap_err_tag, Type.anyerror, operand); |
| ... | @@ -23462,8 +23460,7 @@ fn safetyCheckFormatted( | ... | @@ -23462,8 +23460,7 @@ fn safetyCheckFormatted( |
| 23462 | defer fail_block.instructions.deinit(gpa); | 23460 | defer fail_block.instructions.deinit(gpa); |
| 23463 | | 23461 | |
| 23464 | if (!sema.mod.backendSupportsFeature(.safety_check_formatted)) { | 23462 | if (!sema.mod.backendSupportsFeature(.safety_check_formatted)) { |
| 23465 | _ = try fail_block.addNoOp(.breakpoint); | 23463 | _ = try fail_block.addNoOp(.trap); |
| 23466 | _ = try fail_block.addNoOp(.unreach); | | |
| 23467 | } else { | 23464 | } else { |
| 23468 | const panic_fn = try sema.getBuiltin(func); | 23465 | const panic_fn = try sema.getBuiltin(func); |
| 23469 | _ = try sema.analyzeCall(&fail_block, panic_fn, sema.src, sema.src, .auto, false, args, null); | 23466 | _ = try sema.analyzeCall(&fail_block, panic_fn, sema.src, sema.src, .auto, false, args, null); |