diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-12-03 21:07:01 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2020-12-03 23:31:35 +0100 |
| commit | 54706dd2294d998c6c6ad91c80a23a3471677c43 (patch) | |
| tree | 66d856c4c9715377385ac5c0abbe477eafae7991 /src/Compilation.zig | |
| parent | ecf7dfcd3a3e575ee525487687a0b7607a6a7481 (diff) | |
| download | zig-54706dd2294d998c6c6ad91c80a23a3471677c43.tar.gz zig-54706dd2294d998c6c6ad91c80a23a3471677c43.zip | |
Allow idx 0 err to be put into error_name_table
This way, in the very situation where a function has a return type
an error union such as `anyerror!void` but doesn't have any erroneous
paths, calling `@errorName` on the unpacked error (which will never
be triggered) will not trip up the static analyzer.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
