The check for struct types needs to match the check in
lvMarkImplicitByRefLocals, which uses varTypeIsStruct (and therefore
includes SIMD types), instead of just using TYP_STRUCT.
LclVarDsc* varDsc = &(lvaTable[varNum]);
if (varDsc->lvIsParam && varDsc->lvIsTemp)
{
- assert((varDsc->lvType == TYP_STRUCT) || (varDsc->lvType == TYP_BYREF));
+ assert(varTypeIsStruct(varDsc) || (varDsc->lvType == TYP_BYREF));
return true;
}
#endif // defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_)