aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-07-06 12:03:07 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-07-06 12:03:07 -0400
commit1a5bd8888174ef2eb1881c1dd81d418b44625cc7 (patch)
treeda3b78b294e6d21271ae9095dffece83450cecdd /src/analyze.cpp
parent9cff23dbf9ff3da716a1c4397f9411eba09f6cac (diff)
downloadzig-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