diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-07-06 12:03:07 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-07-06 12:03:07 -0400 |
| commit | 1a5bd8888174ef2eb1881c1dd81d418b44625cc7 (patch) | |
| tree | da3b78b294e6d21271ae9095dffece83450cecdd /src/analyze.cpp | |
| parent | 9cff23dbf9ff3da716a1c4397f9411eba09f6cac (diff) | |
| download | zig-1a5bd8888174ef2eb1881c1dd81d418b44625cc7.tar.gz zig-1a5bd8888174ef2eb1881c1dd81d418b44625cc7.zip | |
alternate implementation of previous commit
This strategy adds another field to the SwitchBr instruction,
which is the result of the CheckSwitchProngs instruction. The
type of the result is void, and is unused, except that the SwitchBr
instruction will not perform analysis if the CheckSwitchProngs
instruction did not pass analysis. This allows the CheckSwitchProngs
instruction to do implicit casting for its type checking, while
preventing duplicate compile error messages.
Diffstat (limited to 'src/analyze.cpp')
0 files changed, 0 insertions, 0 deletions
