Author: djg Date: Tue Nov 6 16:11:54 2007 New Revision: 43781 URL: http://llvm.org/viewvc/llvm-project?rev=43781&view=rev Log: Remainder operations must be either integer or floating-point.
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=43781&r1=43780&r2=43781&view=diff ============================================================================== --- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original) +++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Nov 6 16:11:54 2007 @@ -2935,7 +2935,9 @@ 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 { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits