Remainder operations must be either integer or floating-point.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2007-11-06 22:11:54 +00:00
parent f67f73a519
commit 0d97426b7b

View File

@ -2935,7 +2935,9 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
SDOperand Dummy;
Result = ExpandLibCall(TLI.getLibcallName(LC), Node, isSigned, Dummy);
}
} else if (MVT::isFloatingPoint(VT)) {
} else {
assert(MVT::isFloatingPoint(VT) &&
"remainder op must have integer or floating-point type");
if (MVT::isVector(VT)) {
Result = LegalizeOp(UnrollVectorOp(Op));
} else {