Skip to content

Commit d0517e4

Browse files
Merge pull request #11548 from dotnet/main
Merge main into live
2 parents d403ff4 + 03a95c5 commit d0517e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xml/System.Reflection.Emit/OpCodes.xml

Lines changed: 3 additions & 3 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,9 +10420,9 @@ 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

10425-
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 `*`).
10425+
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 `&`). The local variable is stored in unmanaged memory, so the return value can be converted to an unmanaged pointer without pinning.
1042610426

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

0 commit comments

Comments
 (0)