Remainder operations must be either integer or floating-point.

llvm-svn: 43781
This commit is contained in:
Dan Gohman 2007-11-06 22:11:54 +00:00
parent 8201a9bca0
commit ccfc028283
1 changed files with 3 additions and 1 deletions

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 {