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-14 00:16:40 +03:00
2021-06-16 14:46:25 -04:00
2021-06-18 08:29:23 +03:00
2021-06-15 12:14:04 +02:00
2021-06-12 19:16:01 +03:00
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-11 15:57:52 -07:00
2020-09-21 18:38:55 -07:00
2021-06-14 00:16:40 +03:00
2021-06-09 21:37:23 +03:00
2021-06-17 23:15:47 -04:00
2021-06-14 00:16:40 +03:00
2021-06-10 08:33:42 +03:00
2020-12-07 17:27:09 -07:00
2021-06-09 14:38:27 -07:00
2021-03-25 22:05:21 -04:00
2021-06-09 17:26:58 -04:00
2021-06-15 11:50:13 +09:00
2021-06-09 14:38:27 -07:00
2021-06-09 14:38:27 -07:00
2021-06-09 11:11:55 +02:00
2021-06-03 17:02:16 -05:00
2021-06-17 23:25:05 -04:00
2021-01-22 23:35:13 -07:00
2021-06-07 22:15:56 +03:00
2021-06-09 14:38:27 -07:00
2021-06-03 17:02:16 -05:00
2021-01-07 23:48:58 -08:00
2021-01-07 23:48:58 -08:00
2021-05-02 17:08:19 -07:00
2021-05-22 14:29:16 -07:00
2021-06-15 17:14:09 -04:00
2021-06-14 00:16:40 +03:00
2021-06-11 13:23:00 -04:00
2021-05-19 20:59:06 -07:00
2021-02-28 14:03:19 +01:00
2021-05-20 17:14:18 +02:00
2021-06-15 12:14:04 +02:00
2021-06-14 00:16:40 +03:00
2020-09-21 18:38:55 -07:00
2021-06-07 22:15:56 +03:00
2021-01-14 20:41:37 -07:00
2021-06-09 11:11:55 +02:00
2020-09-21 21:14:01 -07:00
2021-06-14 00:16:40 +03:00
2021-02-25 19:41:30 -08:00
2020-12-16 12:18:14 +01:00
2021-05-24 13:26:52 -04:00
2021-06-12 23:12:37 +03:00
2021-06-12 23:12:37 +03:00
2021-05-29 13:54:31 -07:00
2021-06-18 08:29:23 +03:00
2021-06-18 08:29:23 +03:00
2021-06-15 14:08:57 -07:00