Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arity of generated switcher continuations #105

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dhil
Copy link
Member

@dhil dhil commented Dec 29, 2024

This patch fixes a bug with the arity of the continuation reference
generated by a switch (aka the current continuation). Its arity was
mistakenly derived from the switch-tag's codomain. The arity of the
current continuation can be obtained at the switch point by
deconstructing the type annotation on it.

Fixes #103.

dhil added 2 commits December 29, 2024 19:08
This patch fixes a bug with the arity of the continuation reference
generated by a `switch` (aka the current continuation). Its arity was
mistakenly derived from the switch-tag's codomain. The arity of the
current continuation can be obtained at the `switch` point by
deconstructing the type annotation on it.
@dhil dhil requested a review from rossberg December 29, 2024 19:16
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.

runtime crash: stack underflow when executing opcode switch
1 participant