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(engine) Propagate return rewrite to avoid crash in side_effect_utils #1230

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

maximebuyse
Copy link
Contributor

Fixes #1175

The bug is due to the visitor rewriting returns in AndMutDefSite not rewriting the expressions inside returns. In the reproducer there is a ? inside a return (so a return inside a return). Not visiting it was triggering the crash because several returns of the same function had different return types.

Copy link
Collaborator

@W95Psp W95Psp left a comment

Choose a reason for hiding this comment

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

Thanks, that looks great!

@maximebuyse maximebuyse enabled auto-merge January 14, 2025 14:59
@maximebuyse maximebuyse added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit 1961db0 Jan 14, 2025
15 checks passed
@maximebuyse maximebuyse deleted the fix-1175 branch January 14, 2025 16:01
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.

Fatal error in side_effect_utils.ml
2 participants