-
Notifications
You must be signed in to change notification settings - Fork 229
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
Encapsulate Unit
return check
#1438
Comments
We should remove this check entirely and instead remove all unit values from the ssa form since they will never be used in operations. This would be similar to rust's elision of zero-sized types. |
So we'd instead infer the program returns no value by checking |
Right, and I think that'd be more straightforward as well. |
Looking at the check in question though, we wouldn't need it at all since the loop afterward would just loop 0 times |
@jfecher, do you still hope to remove unit values? |
Closing, as this has been addressed by #1646 |
Problem
Acir gen contains a brittle check for inferring whether or not a function returns
Unit
, which could be overlooked if the underlying representation changed. This check should be encapsulated.Happy Case
Kev's suggestion
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: