1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

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 8e982efdc5
commit ff12f4602f

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 {