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

pulley: Fix a panic in using a return pointer #9967

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexcrichton
Copy link
Member

This fixes a panic in the pulley backend introduced in #9874 which comes up when using a return pointer on call instructions. This would shuffle the uses list of registers to not be sorted like the assertion was expecting. The fix in this commit is to just go ahead and sort the list of uses to ensure that registers are peeled off in order.

This fixes a panic in the pulley backend introduced in bytecodealliance#9874 which comes
up when using a return pointer on call instructions. This would shuffle
the `uses` list of registers to not be sorted like the assertion was
expecting. The fix in this commit is to just go ahead and sort the list
of `uses` to ensure that registers are peeled off in order.
@alexcrichton alexcrichton requested review from a team as code owners January 9, 2025 20:41
@alexcrichton alexcrichton requested review from abrown and fitzgen and removed request for a team January 9, 2025 20:41
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant