Skip to content

[mono] Fix sorting custom attributes in ILStrip#88435

Merged
lewing merged 1 commit into
dotnet:mainfrom
akoeplinger:fix-ilstrip
Jul 5, 2023
Merged

[mono] Fix sorting custom attributes in ILStrip#88435
lewing merged 1 commit into
dotnet:mainfrom
akoeplinger:fix-ilstrip

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

The change in #87923 was subtly wrong, the problem is that RID on a Cecil metadata token masks out the token type. We actually have to reconstruct the custom attribute coded-index.

Credit to @lambdageek for the fix.

The change in dotnet#87923 was subtly wrong, the problem is that RID on a Cecil metadata token masks out the token type.
We actually have to reconstruct the custom attribute coded-index.
@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 5, 2023
@akoeplinger akoeplinger requested a review from jandupej July 5, 2023 19:02
@ghost ghost assigned akoeplinger Jul 5, 2023
@akoeplinger akoeplinger added area-VM-meta-mono and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jul 5, 2023
@akoeplinger

Copy link
Copy Markdown
Member Author

/backport to release/7.0-staging

@github-actions

github-actions Bot commented Jul 5, 2023

Copy link
Copy Markdown
Contributor

Started backporting to release/7.0-staging: https://github.com/dotnet/runtime/actions/runs/5467993606

@lewing lewing merged commit 47f47b8 into dotnet:main Jul 5, 2023
@SamMonoRT

Copy link
Copy Markdown
Member

Thanks for the quick fix. cc @jandupej

@akoeplinger akoeplinger deleted the fix-ilstrip branch July 6, 2023 10:35
@ghost ghost locked as resolved and limited conversation to collaborators Aug 5, 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.

4 participants