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

Commit 40772f5

Browse files
committed
Restrict to void callees
1 parent 3fb3599 commit 40772f5

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
@@ -7663,7 +7663,8 @@ GenTreePtr Compiler::fgMorphCall(GenTreeCall* call)
76637663
return result;
76647664
}
76657665

7666-
if ((call->gtFlags & GTF_CALL_NO_RETURN) != 0)
7666+
if (((call->gtFlags & GTF_CALL_NO_RETURN) != 0) &&
7667+
(call->TypeGet() == TYP_VOID))
76677668
{
76687669
fgRemoveRestOfBlock = true;
76697670
}

0 commit comments

Comments
 (0)