aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-03-24 20:45:14 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-03-24 20:45:14 -0700
commit01bfd835bb9613d21f09c0c4f5b905b077b3d5f9 (patch)
tree89a9fe2ca68d2055abebee9f17b2136f8e5997cf /src/codegen.zig
parentea42ab34abc0408b66ce2c0212afd4f5705e8d43 (diff)
downloadzig-01bfd835bb9613d21f09c0c4f5b905b077b3d5f9.tar.gz
zig-01bfd835bb9613d21f09c0c4f5b905b077b3d5f9.zip
stage2: clean up break / noreturn astgen
* Module.addBreak and addBreakVoid return zir.Inst.Index not Ref because Index is the simpler type and we never need a Ref for these. * astgen: make noreturn stuff return the unreachable_value and avoid unnecessary calls to rvalue() * breakExpr: avoid unnecessary access into the tokens array * breakExpr: fix incorrect `@intCast` (previously this unsafely casted an Index to a Ref)
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions