aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-02 19:49:34 -0700
committerJakub Konka <kubkon@jakubkonka.com>2022-06-05 10:37:08 +0200
commitf4ac37f55da7258c25194e66e1cfe3270ca9d419 (patch)
tree950151f6d2db1620463fe2a3a44faa02b1dfe685 /src/codegen
parent6d3586e0edf3278862a3a969debaa842014f8110 (diff)
downloadzig-f4ac37f55da7258c25194e66e1cfe3270ca9d419.tar.gz
zig-f4ac37f55da7258c25194e66e1cfe3270ca9d419.zip
Sema: extract out zirTryPtr from zirTry
This function took is_ptr: bool and then branched on it three times. Now, instead, each implementation does no branching and the logic is easier to follow, both for maintainers and compilers. I also fixed a bug with TryPtr not ensuring enough capacity in the extra array.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions