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

Add stack checking to old Target#findInitNodeFor overload and un-deprecate it. #667

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

Conversation

LlamaLad7
Copy link
Contributor

Implements my requested changes from here:
The only reason MixinExtras uses this method is to match Redirect's behaviour, so I would like it to be kept in line with that. Additionally, there is nothing wrong with not checking the desc as long as you've definitely found the right NEW insn, which the injection point handles itself.

@Mumfrey
Copy link
Member

Mumfrey commented May 22, 2024

Ah I only added this back because I saw MixinExtras was calling it and didn't realise why. If that's the case then the method should just be an overload which supplies a null value for desc, since desc is not checked if it's null.

…nd un-deprecate it.

The only reason MixinExtras uses this method is to match Redirect's behaviour, so I would like it to be kept in line with that.
Additionally, there is nothing wrong with not checking the desc as long as you've definitely found the right `NEW` insn, which the injection point handles itself.
@LlamaLad7
Copy link
Contributor Author

Done.

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.

None yet

2 participants