Skip to content

Commit

Permalink
Work around MSVC not being smart
Browse files Browse the repository at this point in the history
Sigh.
  • Loading branch information
SingleAccretion committed Dec 10, 2022
1 parent b1da260 commit 71b97d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/coreclr/jit/gentree.h
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,9 @@ struct GenTree
// OperIsIndir() returns true also for indirection nodes such as GT_BLK, etc. as well as GT_NULLCHECK.
static bool OperIsIndir(genTreeOps gtOper)
{
return gtOper == GT_IND || gtOper == GT_STOREIND || gtOper == GT_NULLCHECK || OperIsBlk(gtOper);
static_assert_no_msg(AreContiguous(GT_IND, GT_STOREIND, GT_OBJ, GT_STORE_OBJ, GT_BLK, GT_STORE_BLK,
GT_STORE_DYN_BLK, GT_NULLCHECK));
return (GT_IND <= gtOper) && (gtOper <= GT_NULLCHECK);
}

static bool OperIsArrLength(genTreeOps gtOper)
Expand Down

0 comments on commit 71b97d0

Please sign in to comment.