forked from OSchip/llvm-project
Remainder operations must be either integer or floating-point.
llvm-svn: 43781
This commit is contained in:
parent
8201a9bca0
commit
ccfc028283
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue