Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 4c6b9ae

Browse files
committed
Restrict to void helpers
1 parent a8fa04c commit 4c6b9ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jit/morph.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6269,7 +6269,8 @@ void Compiler::fgMorphCallInlineHelper(GenTreeCall* call, InlineResult* result)
62696269
}
62706270
#endif
62716271

6272-
if (result->GetObservation() == InlineObservation::CALLEE_DOES_NO_RETURN)
6272+
if ((result->GetObservation() == InlineObservation::CALLEE_DOES_NO_RETURN)
6273+
&& (call->TypeGet() == TYP_VOID))
62736274
{
62746275
call->gtFlags |= GTF_CALL_NO_RETURN;
62756276
}

0 commit comments

Comments
 (0)