File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -2482,19 +2482,6 @@ void CodeGen::genCodeForDivMod(GenTreeOp* tree)
2482
2482
}
2483
2483
else // if (tree->OperIs(GT_UDIV, GT_UMOD))
2484
2484
{
2485
- // Only one possible exception
2486
- // (AnyVal / 0) => DivideByZeroException
2487
- //
2488
- // Note that division by the constant 0 was already checked for above by the
2489
- // op2->IsIntegralConst(0) check
2490
-
2491
- if ((exceptions & ExceptionSetFlags::DivideByZeroException) != ExceptionSetFlags::None &&
2492
- !divisorOp->IsCnsIntOrI ())
2493
- {
2494
- // divisorOp is not a constant, so it could be zero
2495
- genJumpToThrowHlpBlk_la (SCK_DIV_BY_ZERO, INS_beq, divisorReg);
2496
- }
2497
-
2498
2485
if (tree->OperIs (GT_UDIV))
2499
2486
{
2500
2487
ins = is4 ? INS_divuw : INS_divu;
You can’t perform that action at this time.
0 commit comments