File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -9699,6 +9699,22 @@ void Compiler::impImportBlockCode(BasicBlock* block)
9699
9699
/* Push the result of the call on the stack */
9700
9700
9701
9701
impPushOnStack(gtNewLclvNode(lclNum, TYP_REF), tiRetVal);
9702
+
9703
+ #ifdef DEBUG
9704
+ // Under SPMI, look up the array element type class handle
9705
+ // and layout info (for arrays of structs)
9706
+ //
9707
+ if (JitConfig.EnableExtraSuperPmiQueries())
9708
+ {
9709
+ CORINFO_CLASS_HANDLE elemClsHnd = NO_CLASS_HANDLE;
9710
+ CorInfoType elemCorType = info.compCompHnd->getChildType(resolvedToken.hClass, &elemClsHnd);
9711
+ var_types elemType = JITtype2varType(elemCorType);
9712
+ if (elemType == TYP_STRUCT)
9713
+ {
9714
+ typGetObjLayout(elemClsHnd);
9715
+ }
9716
+ }
9717
+ #endif
9702
9718
}
9703
9719
else
9704
9720
{
You can’t perform that action at this time.
0 commit comments