Skip to content

use range asserts when loading bools and enum discriminants #5044

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

Closed
wants to merge 3 commits into from
Closed

use range asserts when loading bools and enum discriminants #5044

wants to merge 3 commits into from

Conversation

thestinger
Copy link
Contributor

Closes #4924

There are some more Load calls that could use this, so it's not completely done yet.

@catamorphism
Copy link
Contributor

Is there a way to test this change? I suppose it's mainly for performance?

@thestinger
Copy link
Contributor Author

@catamorphism: it's pretty easy to sanity check by looking at the IR output and making sure the range is correct, I'm not sure if that could be made into a rustc test

@catamorphism
Copy link
Contributor

@thestinger Okay, don't worry about it right now. We don't have a great way to add that kind of test at the moment.

bors added a commit that referenced this pull request Feb 20, 2013
Closes #4924

There are some more `Load` calls that could use this, so it's not completely done yet.
@bors bors closed this Feb 20, 2013
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.

3 participants