-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support Early Returns #100
Labels
Comments
How can we do this in IULIA? |
Interesting rabbit hole: Originally the thought was IULIA/YUL can support this using labels - which are now depreciated. However Jumping doesn't update stack reference, this means that if any local variables are used within an if/else block the jump to the end of the function breaks everything. We are therefore left with a few options as far as I can see:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, an if-else block cannot have an early return in either body.
The text was updated successfully, but these errors were encountered: