Skip to content

Add dependencies for type map group type for external/proxy type map nodes#126383

Merged
jkoritzinsky merged 2 commits intodotnet:mainfrom
jkoritzinsky:typemap-fix
Apr 1, 2026
Merged

Add dependencies for type map group type for external/proxy type map nodes#126383
jkoritzinsky merged 2 commits intodotnet:mainfrom
jkoritzinsky:typemap-fix

Conversation

Copilot AI review requested due to automatic review settings March 31, 2026 22:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses ReadyToRun (R2R) compilation failures by ensuring the type-map group type is included as an import dependency for external and proxy type map nodes, so the emitted type map can correctly reference the group type.

Changes:

  • Add an explicit ImportReferenceProvider.GetImportToType(TypeMapGroup) dependency to ReadyToRunProxyTypeMapNode.
  • Add an explicit ImportReferenceProvider.GetImportToType(TypeMapGroup) dependency to ReadyToRunExternalTypeMapNode.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunProxyTypeMapNode.cs Adds a dependency import for the type map group type used when emitting proxy type maps.
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunExternalTypeMapNode.cs Adds a dependency import for the type map group type used when emitting external type maps.

@jkoritzinsky
Copy link
Copy Markdown
Member Author

/ba-g unrelated timeouts

@jkoritzinsky jkoritzinsky merged commit f016b28 into dotnet:main Apr 1, 2026
104 of 111 checks passed
@github-project-automation github-project-automation bot moved this to Done in AppModel Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants