diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-01-29 19:08:15 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-29 16:05:14 -0500 |
| commit | 59bc1d272120bd860cc3cd1f894a2a4e08fc1f3f (patch) | |
| tree | 0b7eb6fd36762579a141d152b10e0d60b540b217 /src/analyze.cpp | |
| parent | 4fad16284ec30962689723c7eaca05a77df14673 (diff) | |
| download | zig-59bc1d272120bd860cc3cd1f894a2a4e08fc1f3f.tar.gz zig-59bc1d272120bd860cc3cd1f894a2a4e08fc1f3f.zip | |
Fix edge case in switch with single else
ir_gen_switch_expr doesn't set the switch_br field at all if there are
zero cases, detect this situation and handle it gracefully.
Closes #4322
Diffstat (limited to 'src/analyze.cpp')
0 files changed, 0 insertions, 0 deletions
