Skip to content

Commit 84657f9

Browse files
committed
Ensure that we normalize sigType before inserting the CvtMaskToVectorNode
1 parent cbc5213 commit 84657f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/coreclr/jit/rationalize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ void Rationalizer::RewriteNodeAsCall(GenTree** use,
9999
// for intrinsics that get rewritten back to user calls
100100
assert(!operand->OperIsFieldList());
101101

102+
sigTyp = comp->impNormStructType(clsHnd);
103+
102104
if (varTypeIsMask(operand->TypeGet()))
103105
{
104106
#if defined(FEATURE_HW_INTRINSICS)
@@ -115,9 +117,7 @@ void Rationalizer::RewriteNodeAsCall(GenTree** use,
115117
unreached();
116118
#endif // FEATURE_HW_INTRINSICS
117119
}
118-
119-
sigTyp = comp->impNormStructType(clsHnd);
120-
arg = NewCallArg::Struct(operand, sigTyp, clsHnd);
120+
arg = NewCallArg::Struct(operand, sigTyp, clsHnd);
121121
}
122122
else
123123
{

0 commit comments

Comments
 (0)