We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43eb602 commit cc768d2Copy full SHA for cc768d2
src/coreclr/jit/morph.cpp
@@ -5685,7 +5685,7 @@ GenTree* Compiler::fgMorphArrayIndex(GenTree* tree)
5685
5686
if (bndsChkType != TYP_INT)
5687
{
5688
- arrLen = gtNewCastNode(bndsChkType, arrLen, false, bndsChkType);
+ arrLen = gtNewCastNode(bndsChkType, arrLen, true, bndsChkType);
5689
}
5690
5691
GenTreeBoundsChk* arrBndsChk = new (this, GT_ARR_BOUNDS_CHECK)
@@ -5714,7 +5714,7 @@ GenTree* Compiler::fgMorphArrayIndex(GenTree* tree)
5714
5715
else
5716
5717
- index = gtNewCastNode(TYP_I_IMPL, index, false, TYP_I_IMPL);
+ index = gtNewCastNode(TYP_I_IMPL, index, true, TYP_I_IMPL);
5718
5719
5720
#endif // TARGET_64BIT
0 commit comments