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

Fixing issues discovered during validation #1436

Merged

Conversation

manodasanW
Copy link
Member

Previous fixes to IID optimizer discovered issues where some of the generated class had incorrect IL. This was particularly in cases where the generic was known but is a custom type mapping like Nullable. This handles them by detecting if it is a generic or not before figuring out how to do a field access of the iidData field.

The generic instantiation classes for delegates were assuming they were IInspectable based when it isn't. This addresses that by fixing the vtable index.

Copy link
Member

@Sergio0694 Sergio0694 left a comment

Choose a reason for hiding this comment

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

LGTM, good find! :shipit:

@manodasanW
Copy link
Member Author

CI already passed: 2.0.5-prerelease.240110.22

@manodasanW manodasanW merged commit 7269faf into staging/AOT Jan 11, 2024
3 of 9 checks passed
@manodasanW manodasanW deleted the manodasanw/fix_delegate_generic_instantiation2 branch January 11, 2024 01:25
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