Skip to content

Fix wording of ldloca description #11313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2025
Merged

Conversation

Smaug123
Copy link
Contributor

@Smaug123 Smaug123 commented May 18, 2025

Summary

The current phrasing in the numbered list unambiguously and incorrectly means "dereference the local variable, which is guaranteed to contain an address, and push that address to the stack". The rest of the text correctly implies instead that it means "push the address of the local variable".

ECMA-335 6th edition states:

The ldloca instruction pushes the address of the local variable number indx onto the stack, where local variables are numbered 0 onwards.

@Smaug123 Smaug123 requested a review from a team as a code owner May 18, 2025 22:21
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 18, 2025
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 20, 2025
@gewarren gewarren added area-System.Reflection.Emit and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels May 20, 2025
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks

@jkotas
Copy link
Member

jkotas commented Jul 3, 2025

Could you please resolve the conflict?

@Smaug123
Copy link
Contributor Author

Smaug123 commented Jul 4, 2025

Thanks; done.

@jkotas jkotas merged commit 01c0e96 into dotnet:main Jul 4, 2025
5 checks passed
@jkotas
Copy link
Member

jkotas commented Jul 4, 2025

Thank you! Could you please fix up #11314 as well?

@Smaug123 Smaug123 deleted the fix-emit-opcode branch July 4, 2025 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Reflection.Emit community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants