aboutsummaryrefslogtreecommitdiff
path: root/src/AstGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-28 17:56:28 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-06-28 18:38:25 -0700
commitc3ae909e935f1548408f2e400464370ee02b7e82 (patch)
tree165a355a68a838ec4fa894a0496ab471b0439a42 /src/AstGen.zig
parenta058696df280ad50c28a2d501a6a2c38a7e3a532 (diff)
downloadzig-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.zig2
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| {