diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-05-26 15:30:42 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-05-27 10:29:24 +0300 |
| commit | 8bf3e1f8d0902abd4133e2729b3625c25011c3ff (patch) | |
| tree | 94ab11b109f9908d258c8a028bef682e423c8046 /src/AstGen.zig | |
| parent | e08cdad53b25876b247322aed91257288e8b9230 (diff) | |
| download | zig-8bf3e1f8d0902abd4133e2729b3625c25011c3ff.tar.gz zig-8bf3e1f8d0902abd4133e2729b3625c25011c3ff.zip | |
AstGen: preserve inferred ptr result loc for breaks
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index 30ed680226..ba27165cea 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -9915,7 +9915,7 @@ const GenZir = struct { .inferred_ptr => |ptr| { gz.rl_ty_inst = .none; gz.rl_ptr = ptr; - gz.break_result_loc = .{ .block_ptr = gz }; + gz.break_result_loc = parent_rl; }, .block_ptr => |parent_block_scope| { |
