This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1608,7 +1608,7 @@ void fgArgInfo::ArgsComplete()
16081608 bool isMultiRegArg = (curArgTabEntry->numRegs > 1);
16091609#endif
16101610
1611- if ((argx->TypeGet() == TYP_STRUCT ) && (curArgTabEntry->needTmp == false))
1611+ if ((varTypeIsStruct( argx->TypeGet()) ) && (curArgTabEntry->needTmp == false))
16121612 {
16131613 if (isMultiRegArg && ((argx->gtFlags & GTF_PERSISTENT_SIDE_EFFECTS) != 0))
16141614 {
@@ -3856,7 +3856,7 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call)
38563856
38573857#endif // not _TARGET_X86_
38583858 // We still have a struct unless we converted the GT_OBJ into a GT_IND above...
3859- if ((structBaseType == TYP_STRUCT ) &&
3859+ if (varTypeIsStruct (structBaseType) &&
38603860#if defined(FEATURE_UNIX_AMD64_STRUCT_PASSING)
38613861 !passStructInRegisters
38623862#else // !defined(FEATURE_UNIX_AMD64_STRUCT_PASSING)
@@ -6275,7 +6275,7 @@ GenTreePtr Compiler::fgMorphStackArgForVarArgs(unsigned lclNum, var_types varTyp
62756275
62766276 // Access the argument through the local
62776277 GenTreePtr tree;
6278- if (varType == TYP_STRUCT )
6278+ if (varTypeIsStruct( varType) )
62796279 {
62806280 tree = gtNewBlockVal(ptrArg, varDsc->lvExactSize);
62816281 }
You can’t perform that action at this time.
0 commit comments