Skip to content

Commit 39e424c

Browse files
committed
Ensure multi-reg returns are initialized for rewritten hwintrinsics
1 parent 45d9e23 commit 39e424c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/coreclr/jit/rationalize.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ void Rationalizer::RewriteNodeAsCall(GenTree** use,
4848
call->gtRetClsHnd = sig.retTypeClass;
4949
retType = comp->impNormStructType(sig.retTypeClass);
5050

51+
#if FEATURE_MULTIREG_RET
52+
call->InitializeStructReturnType(comp, sig.retTypeClass, call->GetUnmanagedCallConv());
53+
#endif // FEATURE_MULTIREG_RET
54+
5155
Compiler::structPassingKind howToReturnStruct;
5256
var_types returnType =
5357
comp->getReturnTypeForStruct(sig.retTypeClass, call->GetUnmanagedCallConv(), &howToReturnStruct);

0 commit comments

Comments
 (0)