Skip to content

Commit 0f5a211

Browse files
committed
Have IsEmbMaskOp check, rather than assert, the node is a HWIntrinsic
1 parent a49537b commit 0f5a211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/jit/gentree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,12 +2244,12 @@ struct GenTree
22442244
#if defined(TARGET_XARCH) && defined(FEATURE_HW_INTRINSICS)
22452245
bool IsEmbMaskOp()
22462246
{
2247-
assert(OperIsHWIntrinsic());
2248-
return (gtFlags & GTF_HW_EM_OP) != 0;
2247+
return OperIsHWIntrinsic() && ((gtFlags & GTF_HW_EM_OP) != 0);
22492248
}
22502249

22512250
void MakeEmbMaskOp()
22522251
{
2252+
assert(OperIsHWIntrinsic());
22532253
assert(!IsEmbMaskOp());
22542254
gtFlags |= GTF_HW_EM_OP;
22552255
}

0 commit comments

Comments
 (0)