aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-06-17 22:40:07 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-06-17 22:44:17 -0700
commit6ce84409875e92d69da1fd88409e2f00d4adee9f (patch)
tree023c203932be96ed0040d6b869f03f28f8194214 /lib/std/os/linux.zig
parentccb6e1627ec76ffeccef9bdcce321c21d1e72bfd (diff)
downloadzig-6ce84409875e92d69da1fd88409e2f00d4adee9f.tar.gz
zig-6ce84409875e92d69da1fd88409e2f00d4adee9f.zip
AstGen: properly generate errdefer expressions when returning
`return` statements use a new function `nodeMayEvalToError` which does some basic checks on the AST node to return never, always, or maybe. Depending on this result, AstGen skips the errdefers, always includes the errdefers, or emits a conditional branch to check whether the return value is an error that Sema will have to evaluate. Closes #8821 Unblocks #9047
Diffstat (limited to 'lib/std/os/linux.zig')
0 files changed, 0 insertions, 0 deletions