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

When modifying the value, also update its ExtraInfo. #1034

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

nlewycky
Copy link
Contributor

@nlewycky nlewycky commented Dec 2, 2019

Fixes a debug_assert! on python3.7 and rustpython in wapm.

Fixes a debug_assert! on python3.7 and rustpython in wapm.
@nlewycky nlewycky requested a review from losfair as a code owner December 2, 2019 23:47
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey left a comment

Choose a reason for hiding this comment

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

Looks fine to me -- do think there's anywhere else this same fix might apply?

This also was a wrong-code bug (I think), but we can't yet write tests for those.
@nlewycky
Copy link
Contributor Author

nlewycky commented Dec 2, 2019

Looks fine to me -- do think there's anywhere else this same fix might apply?

There shouldn't be. When developing this code I've been indecisive and changed whether ExtraInfo gets propagated through functions like apply_pending_canonicalization along with the value, and that led to me auditing and re-auditing how every operator handles its ExtraInfo. I think this is a special case that I missed in my last read through the code due to Operator::Select being different from any other instructions.

Copy link
Contributor

@MarkMcCaskey MarkMcCaskey left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the test! Might want to add a comment, to the test unless you think that's sufficiently clear as to why this can cause a bug

@nlewycky
Copy link
Contributor Author

nlewycky commented Dec 3, 2019

bors r+

bors bot added a commit that referenced this pull request Dec 3, 2019
1034: When modifying the value, also update its ExtraInfo. r=nlewycky a=nlewycky

Fixes a debug_assert! on python3.7 and rustpython in wapm.


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

bors bot commented Dec 3, 2019

Build succeeded

@bors bors bot merged commit 7c6d73d into master Dec 3, 2019
@bors bors bot deleted the feature/assert_pending_f64_nan branch December 3, 2019 00:48
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