diff --git a/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCompilerContext.cs b/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCompilerContext.cs index 97e5bd69e395ae..73dcd33c1b2f99 100644 --- a/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCompilerContext.cs +++ b/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCompilerContext.cs @@ -255,7 +255,8 @@ public override ComputedStaticFieldLayout ComputeStaticFieldLayout(DefType type, public override ValueTypeShapeCharacteristics ComputeValueTypeShapeCharacteristics(DefType type) { - if (type.Context.Target.Architecture == TargetArchitecture.ARM64) + if (type.Context.Target.Architecture == TargetArchitecture.ARM64 && + type.Instantiation[0].IsPrimitiveNumeric) { return type.InstanceFieldSize.AsInt switch { diff --git a/src/tests/issues.targets b/src/tests/issues.targets index a720de9c70abc5..2d586226fc9bfc 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -227,9 +227,6 @@ https://github.com/dotnet/runtime/issues/67870 - - https://github.com/dotnet/runtime/issues/60036 - https://github.com/dotnet/runtime/issues/60154