Skip to content

Commit 7b0f6e8

Browse files
committed
Fix wording of ldloca description
1 parent 317fa2f commit 7b0f6e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Reflection.Emit/OpCodes.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10359,7 +10359,7 @@ The following <xref:System.Reflection.Emit.ILGenerator.Emit%2A> method overloads
1035910359

1036010360
The stack transitional behavior, in sequential order, is:
1036110361

10362-
1. The address stored in the local variable at the specified index is pushed onto the stack.
10362+
1. The address of the local variable at the specified index is pushed onto the stack.
1036310363

1036410364
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 <xref:System.Reflection.Emit.OpCodes.Ldind_I> and <xref:System.Reflection.Emit.OpCodes.Stind_I>. 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.
1036510365

@@ -10421,7 +10421,7 @@ The following <xref:System.Reflection.Emit.ILGenerator.Emit%2A> method overloads
1042110421

1042210422
The stack transitional behavior, in sequential order, is:
1042310423

10424-
1. The address stored in the local variable at the specified index is pushed onto the stack.
10424+
1. The address of the local variable at the specified index is pushed onto the stack.
1042510425

1042610426
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 <xref:System.Reflection.Emit.OpCodes.Ldind_I> and <xref:System.Reflection.Emit.OpCodes.Stind_I>. The result is a transient pointer (type `*`).
1042710427

0 commit comments

Comments
 (0)