Skip to content

Commit

Permalink
Fix the assert (dotnet#76628)
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion committed Oct 5, 2022
1 parent 0041da9 commit ab42ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ GenTree* Compiler::impAssignStructPtr(GenTree* destAddr,
{
assert(src->OperIs(GT_LCL_VAR, GT_LCL_FLD, GT_FIELD, GT_IND, GT_OBJ, GT_CALL, GT_MKREFANY, GT_RET_EXPR,
GT_COMMA, GT_CNS_VEC) ||
((src->TypeGet() != TYP_STRUCT) && src->OperIsSIMD()));
((src->TypeGet() != TYP_STRUCT) && (src->OperIsSIMD() || src->OperIs(GT_BITCAST))));
}
#endif // DEBUG

Expand Down

0 comments on commit ab42ee1

Please sign in to comment.