From 7b0f6e80d6e893f82a94f56a0ca41d4b9372e745 Mon Sep 17 00:00:00 2001 From: Smaug123 <3138005+Smaug123@users.noreply.github.com> Date: Sun, 18 May 2025 23:19:02 +0100 Subject: [PATCH] Fix wording of ldloca description --- xml/System.Reflection.Emit/OpCodes.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Reflection.Emit/OpCodes.xml b/xml/System.Reflection.Emit/OpCodes.xml index f56be8851d1..f6ce10ab8d0 100644 --- a/xml/System.Reflection.Emit/OpCodes.xml +++ b/xml/System.Reflection.Emit/OpCodes.xml @@ -10359,7 +10359,7 @@ The following method overloads The stack transitional behavior, in sequential order, is: -1. The address stored in the local variable at the specified index is pushed onto the stack. +1. The address of the local variable at the specified index is pushed onto the stack. The `ldloca` instruction pushes the address of the local variable number at the passed index onto the stack, where local variables are numbered 0 onwards. The value pushed on the stack is already aligned correctly for use with instructions like and . The result is a managed pointer (type `&`). The local variable is stored in unmanaged memory, so the return value can be converted to an unmanaged pointer without pinning. @@ -10421,7 +10421,7 @@ The following method overloads The stack transitional behavior, in sequential order, is: -1. The address stored in the local variable at the specified index is pushed onto the stack. +1. The address of the local variable at the specified index is pushed onto the stack. The `ldloca.s` instruction pushes the address of the local variable number at the passed index onto the stack, where local variables are numbered 0 onwards. The value pushed on the stack is already aligned correctly for use with instructions like and . The result is a transient pointer (type `*`).