diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-06-02 19:49:34 -0700 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-06-05 10:37:08 +0200 |
| commit | f4ac37f55da7258c25194e66e1cfe3270ca9d419 (patch) | |
| tree | 950151f6d2db1620463fe2a3a44faa02b1dfe685 /lib | |
| parent | 6d3586e0edf3278862a3a969debaa842014f8110 (diff) | |
| download | zig-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 'lib')
0 files changed, 0 insertions, 0 deletions
