[llvm-commits] [llvm] r43781 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Dan Gohman
djg at cray.com
Tue Nov 6 14:11:55 PST 2007
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 {
More information about the llvm-commits
mailing list