Skip to content

Commit

Permalink
[NativeAOT] Convert operand of newarr to int when producing reverse P…
Browse files Browse the repository at this point in the history
…/Invoke array marshalling (dotnet#98025)
  • Loading branch information
filipnavara authored Feb 12, 2024
1 parent 65a0617 commit e7b6d06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/tools/Common/TypeSystem/Interop/IL/Marshaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,8 @@ protected virtual void EmitElementCount(ILCodeStream codeStream, MarshalDirectio

if (sizeConst.HasValue)
codeStream.Emit(ILOpcode.add);

codeStream.Emit(ILOpcode.conv_ovf_i4);
}

if (!sizeConst.HasValue && !sizeParamIndex.HasValue)
Expand Down

0 comments on commit e7b6d06

Please sign in to comment.