Andrew Kelley 6ce8440987 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
2021-06-17 22:44:17 -07:00
..
2021-06-12 19:16:01 +03:00
2021-06-03 17:02:16 -05:00
2021-06-15 11:50:13 +09:00
2021-06-11 13:23:00 -04:00
2021-05-20 17:14:18 +02:00
2020-09-21 18:38:55 -07:00
2021-06-07 22:15:56 +03:00
2020-12-16 12:18:14 +01:00