Skip to content

Commit 0b8a1f3

Browse files
committed
Fix description of pointer in ldloca.s
1 parent 317fa2f commit 0b8a1f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Reflection.Emit/OpCodes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10423,7 +10423,7 @@ The following <xref:System.Reflection.Emit.ILGenerator.Emit%2A> method overloads
1042310423

1042410424
1. The address stored in the local variable at the specified index is pushed onto the stack.
1042510425

10426-
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 `*`).
10426+
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 managed pointer (type `&`).
1042710427

1042810428
The `ldloca.s` instruction provides an efficient encoding for use with the local variables 0 through 255.
1042910429

0 commit comments

Comments
 (0)