diff options
| author | Dan Gohman <gohman@apple.com> | 2007-11-06 22:11:54 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-11-06 22:11:54 +0000 |
| commit | ccfc028283a4c85279c703fa7c259ce85775d73f (patch) | |
| tree | 2aa69c170dfb9d9e60907d734626bdbc31951bf9 /llvm/lib/CodeGen | |
| parent | 8201a9bca038edc5c89270c5d3bc293c4d8f270b (diff) | |
| download | bcm5719-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.cpp | 4 |
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 { |

