Closed MichalStrehovsky closed 6 days ago
Fixes #109496.
We try to optimize away type handles (MethodTables) of types that are only needed due to metadata. Trying to grab type handle of such type throws. This fixes it by unconditionally generating type handles of IDynamicInterfaceCastableImplementation.
Cc @dotnet/ilc-contrib
/backport to release/9.0-staging
Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/11888115234
Fixes #109496.
We try to optimize away type handles (MethodTables) of types that are only needed due to metadata. Trying to grab type handle of such type throws. This fixes it by unconditionally generating type handles of IDynamicInterfaceCastableImplementation.
Cc @dotnet/ilc-contrib