| author | |
| committer | |
| log | 6c51c8e131b0bad77f199176dfc186b92768f296 |
| tree | 4156a53908162e1ceabc30b1e8fabb364e87b660 |
| parent | 304a58a2515c19cc719f5a517b0016f82117263e |
Before this commit, `@setRuntimeSafety()` has no effect inside an if
expression.1 files changed, 1 insertions(+), 0 deletions(-)
src/Sema.zig+1| ... | ... | @@ -4478,6 +4478,7 @@ fn zirBlock(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileErro |
| 4478 | 4478 | .label = &label, |
| 4479 | 4479 | .inlining = parent_block.inlining, |
| 4480 | 4480 | .is_comptime = parent_block.is_comptime, |
| 4481 | .want_safety = parent_block.want_safety, | |
| 4481 | 4482 | }; |
| 4482 | 4483 | |
| 4483 | 4484 | defer child_block.instructions.deinit(gpa); |