Skip to content

Commit 01c0e96

Browse files
authored
Fix wording of ldloca description (#11313)
1 parent e2427a4 commit 01c0e96

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
@@ -10358,7 +10358,7 @@ The following <xref:System.Reflection.Emit.ILGenerator.Emit%2A> method overloads
1035810358

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

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

1036310363
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.
1036410364

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

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

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

1042510425
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 `*`).
1042610426

0 commit comments

Comments
 (0)