Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Adjust ref param kind check for IL offset - #2838

Merged
jtschuster merged 1 commit into
dotnet:mainfrom
jtschuster:refParamIL
Jun 15, 2022
Merged

jtschuster merged 1 commit into
dotnet:mainfrom
jtschuster:refParamIL

Conversation

@jtschuster

Copy link
Copy Markdown
Member

In the linker, ParameterReferenceKind expects the IL parameter index (with this as 0), but MethodProxy would pass the index without this. This fix adds a test that failed with the incorrect order, but works after accounting for the offset.

@jtschuster
jtschuster requested a review from vitek-karas June 14, 2022 22:15
@jtschuster
jtschuster requested a review from marek-safar as a code owner June 14, 2022 22:15
@jtschuster
jtschuster merged commit 2abcee1 into dotnet:main Jun 15, 2022
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants