aboutsummaryrefslogtreecommitdiff
path: root/src/AstGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-29 14:26:23 -0400
committerGitHub <noreply@github.com>2022-06-29 14:26:23 -0400
commit98681b2da070755c29065d21d2ffb17be37d9619 (patch)
treecf9592ac47d5fd6d10557be65fb9d38c624728ee /src/AstGen.zig
parent7cc417644862a9b9523545f4455da7722afc8209 (diff)
parentc3ae909e935f1548408f2e400464370ee02b7e82 (diff)
downloadzig-98681b2da070755c29065d21d2ffb17be37d9619.tar.gz
zig-98681b2da070755c29065d21d2ffb17be37d9619.zip
Merge pull request #11958 from ziglang/store-to-inferred-ptr
stage2: fix miscompilations for peer expressions any time they needed coercions to runtime types
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| {