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

Beef up WithoutFunctionPointerType #81147

Merged
merged 2 commits into from
Jan 25, 2023

Conversation

MichalStrehovsky
Copy link
Member

Fixes #81117

We don't have a MethodTable shape for function pointer types because how they should look like hasn't been defined until .NET 8.

Beef up the CoreCLR compat shim. We'll not be 100% compatible with this because typeof(Tuple<delegate*<void>[]>) doesn't actually load as typeof(Tuple<IntPtr[]>), but this'll do until #71883.

Cc @dotnet/ilc-contrib

We don't have a `MethodTable` shape for function pointer types because how they should look like hasn't been defined until .NET 8.

Beef up the CoreCLR compat shim. We'll not be 100% compatible with this because `typeof(Tuple<delegate*<void>[]>)` doesn't actually load as `typeof(Tuple<IntPtr[]>)`, but this'll do until dotnet#71883.
@MichalStrehovsky MichalStrehovsky marked this pull request as ready for review January 25, 2023 05:29
@ghost
Copy link

ghost commented Jan 25, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #81117

We don't have a MethodTable shape for function pointer types because how they should look like hasn't been defined until .NET 8.

Beef up the CoreCLR compat shim. We'll not be 100% compatible with this because typeof(Tuple<delegate*<void>[]>) doesn't actually load as typeof(Tuple<IntPtr[]>), but this'll do until #71883.

Cc @dotnet/ilc-contrib

Author: MichalStrehovsky
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

{
switch (type.Category)
{
case TypeFlags.Array:
Copy link
Member

Choose a reason for hiding this comment

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

Skip the parametrized type lookup if there is no change in the parameter - similar to how it is done for the generic case below?

@MichalStrehovsky MichalStrehovsky merged commit 8d9636c into dotnet:main Jan 25, 2023
@MichalStrehovsky MichalStrehovsky deleted the fix81117 branch January 25, 2023 23:30
@ghost ghost locked as resolved and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ILC error when using a function pointer type nested under a generic type
2 participants