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

Remove incorrect invariant for [Apply] #1239

Merged
merged 3 commits into from
Mar 20, 2023

Conversation

Gbury
Copy link
Contributor

@Gbury Gbury commented Mar 20, 2023

The check of the arity in the [Never_returns] case was not correct.

We can now infer that some applications never return (see the added example, although it requires to use return types and thus the -flambda2-return-type-all-functions option), thus the arity check is simply incorrect (it was written at a time where only a few extcalls were marked as Never_returns and all those had a nullary arity).

@mshinwell mshinwell added the flambda2 Prerequisite for, or part of, flambda2 label Mar 20, 2023
@mshinwell mshinwell merged commit a1e5e7c into ocaml-flambda:main Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flambda2 Prerequisite for, or part of, flambda2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants