Skip to content

AstGen: Pop error trace for continue#13620

Merged
Vexu merged 1 commit intoziglang:masterfrom
topolarity:bug-13618
Nov 22, 2022
Merged

AstGen: Pop error trace for continue#13620
Vexu merged 1 commit intoziglang:masterfrom
topolarity:bug-13618

Conversation

@topolarity
Copy link
Contributor

Thanks to @squeek502 for the bug report!

Resolves #13618.

PR ziglang#12837 handled control flow for break and return, but I forgot
about `continue`. This is effectively another break, so we just
need another `.restore_err_ret_index` ZIR instruction.

Resolves ziglang#13618.
@Vexu Vexu merged commit 3fa226a into ziglang:master Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

catch continue doesn't handle error return trace frame popping correctly

2 participants