diff --git a/src/coreclr/jit/scev.cpp b/src/coreclr/jit/scev.cpp index 5a11e81e85a542..7425f8f3e1a491 100644 --- a/src/coreclr/jit/scev.cpp +++ b/src/coreclr/jit/scev.cpp @@ -688,7 +688,7 @@ Scev* ScalarEvolutionContext::AnalyzeNew(BasicBlock* block, GenTree* tree, int d case GT_CAST: { GenTreeCast* cast = tree->AsCast(); - if (cast->gtCastType != TYP_LONG) + if ((cast->gtCastType != TYP_LONG) && (cast->gtCastType != TYP_ULONG)) { return nullptr; }