llvm.org GIT mirror llvm / b09b50c
[APInt] Add an assert to check for divide by zero in udivrem. NFC udiv and urem already had the same assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302931 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 3 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
16611661 // Get some size facts about the dividend and divisor
16621662 unsigned lhsWords = getNumWords(LHS.getActiveBits());
16631663 unsigned rhsWords = getNumWords(RHS.getActiveBits());
1664 assert(rhsWords && "Performing divrem operation by zero ???");
16641665
16651666 // Check the degenerate cases
16661667 if (lhsWords == 0) {