aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-06-06 04:13:52 -0600
committerGitHub <noreply@github.com>2022-06-06 13:13:52 +0300
commit135b91aecd9be1f6f5806b667e07e383dd481198 (patch)
tree4bcc701521d344b75b2541ec1347ce2652e020c0 /src/codegen/c.zig
parent33826a6a2e035d2a2be65314ed80a6b7abaf7f12 (diff)
downloadzig-135b91aecd9be1f6f5806b667e07e383dd481198.tar.gz
zig-135b91aecd9be1f6f5806b667e07e383dd481198.zip
Treat blocks with "return" as "noreturn"
Block statements that end with "break" should not be considered "noreturn" for the enclosing scope, but other "noreturn" instructions (return, panic, compile error, etc.) should be. This differentiation necessitates handling "break" differently from the other "noreturn" instructions when inside a block statement.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions