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

Commit f063377

Browse files
Remove assert validating intrinsic expansion on mustExpand
The assert is incorrect. Consider expansion of CORINFO_INTRINSIC_RTH_GetValueInternal, where the RuntimeTypeHandle was created through a generic lookup helper call. The intrinsic expansion of this sequence becomes the generic lookup helper call on it's own.
1 parent 66b6219 commit f063377

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/jit/importer.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3381,13 +3381,6 @@ GenTreePtr Compiler::impIntrinsic(CORINFO_CLASS_HANDLE clsHnd,
33813381
{
33823382
NO_WAY("JIT must expand the intrinsic!");
33833383
}
3384-
else if ((retNode->gtFlags & GTF_CALL) != 0)
3385-
{
3386-
// If we must expand the intrinsic,
3387-
// retNode (the tree that corresponds to the intrinsic expansion) must be non-null,
3388-
// and the returned tree must not contain a call.
3389-
NO_WAY("JIT must not implement the intrinsic by a user call!");
3390-
}
33913384
}
33923385

33933386
return retNode;

0 commit comments

Comments
 (0)