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.
@ghostghost 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 jandupejJuly 5, 2023 19:02
@ghostghost assigned akoeplingerJul 5, 2023
@akoeplingerakoeplinger 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
MemberAuthor

/backport to release/7.0-staging

@github-actions

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:mainJul 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
@ghostghost locked as resolved and limited conversation to collaborators Aug 5, 2023
Sign up for freeto 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

@akoeplinger@SamMonoRT@lambdageek@lewing