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

replace ir::Type::Void by an option #64

Merged
merged 1 commit into from
Jul 17, 2018
Merged

replace ir::Type::Void by an option #64

merged 1 commit into from
Jul 17, 2018

Conversation

ulysseB
Copy link
Owner

@ulysseB ulysseB commented Jul 16, 2018

We currently represented instructions that did not produce a value with the ir::Type::Void variant. However, this produced a lot of special cases where we add to test if the type was void. Instead we now use an Option<ir::Type> in the places where the type could before be void. This will simplify future improvements to the value system, in particular, #41 .

@ulysseB ulysseB self-assigned this Jul 16, 2018
@ulysseB ulysseB requested a review from nicoTolly July 16, 2018 21:50
Copy link
Collaborator

@nicoTolly nicoTolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing special to say

@ulysseB
Copy link
Owner Author

ulysseB commented Jul 17, 2018

bors r+

bors bot added a commit that referenced this pull request Jul 17, 2018
64: replace `ir::Type::Void` by an option r=ulysseB a=ulysseB

We currently represented instructions that did not produce a value with the `ir::Type::Void` variant. However, this produced a lot of special cases where we add to test if the type was void. Instead we now use an `Option<ir::Type>` in the places where the type could before be void. This will simplify future improvements to the value system, in particular, #41 .

Co-authored-by: Ulysse Beaugnon <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jul 17, 2018

Build succeeded

@bors bors bot merged commit 3e3885a into master Jul 17, 2018
@ulysseB ulysseB deleted the remove_void branch July 17, 2018 14:13
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.

2 participants