diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-06-28 17:56:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-06-28 18:38:25 -0700 |
| commit | c3ae909e935f1548408f2e400464370ee02b7e82 (patch) | |
| tree | 165a355a68a838ec4fa894a0496ab471b0439a42 /src/AstGen.zig | |
| parent | a058696df280ad50c28a2d501a6a2c38a7e3a532 (diff) | |
| download | zig-c3ae909e935f1548408f2e400464370ee02b7e82.tar.gz zig-c3ae909e935f1548408f2e400464370ee02b7e82.zip | |
Revert "AstGen: preserve inferred ptr result loc for breaks"
This reverts commit 8bf3e1f8d0902abd4133e2729b3625c25011c3ff, which
introduced miscompilations for peer expressions any time they needed
coercions to runtime types.
I opened #11957 as a proposal to accomplish the goal of the reverted
commit.
Closes #11898
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 078523831c..ec8af65614 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -10007,7 +10007,7 @@ const GenZir = struct { .inferred_ptr => |ptr| { gz.rl_ty_inst = .none; gz.rl_ptr = ptr; - gz.break_result_loc = parent_rl; + gz.break_result_loc = .{ .block_ptr = gz }; }, .block_ptr => |parent_block_scope| { |
