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

Fix bug in ASSERT_EQ case in opcode_assertions #653

Merged
merged 1 commit into from
Dec 21, 2022
Merged

Conversation

fmoletta
Copy link
Contributor

@fmoletta fmoletta commented Dec 21, 2022

In the ASSERT_EQ case of opcode_assertions, values are only compared if they are int values, which lead to assertions between relocatables to be skipped.
This PR fixes the method so that relocatables are also compared and adds a test for this case

@fmoletta fmoletta marked this pull request as ready for review December 21, 2022 18:28
Copy link
Contributor

@Oppen Oppen left a comment

Choose a reason for hiding this comment

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

Beautiful catch!

@fmoletta fmoletta merged commit 42dadd1 into main Dec 21, 2022
@fmoletta fmoletta deleted the assert-eq-bugfix branch December 21, 2022 19:49
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