Skip to content

Commit 9ba8b1a

Browse files
committed
Move type initialization earlier and fix cast issue on MSVC
1 parent b950fa5 commit 9ba8b1a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/coreclr/jit/compiler.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6809,6 +6809,14 @@ int Compiler::compCompileHelper(CORINFO_MODULE_HANDLE classPtr,
68096809
break;
68106810
}
68116811

6812+
#if defined(FEATURE_SIMD) && defined(TARGET_ARM64)
6813+
// Initialize the size of Vector<T> from the EE.
6814+
_initGenTypeSizes[TYP_SIMDSV] = (BYTE)getVectorTByteLength();
6815+
_initGenTypeSizes[TYP_MASK] = (BYTE)getMaskByteLength();
6816+
assert(genTypeSize(TYP_SIMDSV) >= 16);
6817+
assert(genTypeSize(TYP_MASK) >= 2);
6818+
#endif
6819+
68126820
info.compRetType = JITtype2varType(methodInfo->args.retType);
68136821
if (info.compRetType == TYP_STRUCT)
68146822
{

0 commit comments

Comments
 (0)