aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-30 23:16:32 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-30 23:19:10 -0700
commitcf4aad4858ac61b4814d8f021c8eae22ee7f63e6 (patch)
tree24b38ed2af8bc40ffa056b5deb3d932916d8c770 /lib
parent08565b23f94655e3b2610187f71ba774ce89eeb8 (diff)
downloadzig-cf4aad4858ac61b4814d8f021c8eae22ee7f63e6.tar.gz
zig-cf4aad4858ac61b4814d8f021c8eae22ee7f63e6.zip
AstGen: fix referencing unreferencable instructions
Sema avoids adding map entries for certain instructions such as `set_eval_branch_quota` and `atomic_store`. This means that result location semantics in AstGen must not emit any instructions that attempt to use the result of any of these instructions. This commit makes AstGen replace such instructions with `Zir.Inst.Ref.void_value` if their result value ends up being referenced. This fixes a compiler crash when running std lib atomic tests.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions