summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-11-06 22:11:54 +0000
committerDan Gohman <gohman@apple.com>2007-11-06 22:11:54 +0000
commitccfc028283a4c85279c703fa7c259ce85775d73f (patch)
tree2aa69c170dfb9d9e60907d734626bdbc31951bf9 /llvm/lib/CodeGen
parent8201a9bca038edc5c89270c5d3bc293c4d8f270b (diff)
downloadbcm5719-llvm-ccfc028283a4c85279c703fa7c259ce85775d73f.tar.gz
bcm5719-llvm-ccfc028283a4c85279c703fa7c259ce85775d73f.zip
Remainder operations must be either integer or floating-point.
llvm-svn: 43781
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index d688465234b..6e58631f0c1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -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 {
OpenPOWER on IntegriCloud