projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f67f73a
)
Remainder operations must be either integer or floating-point.
author
Dan Gohman
<gohman@apple.com>
Tue, 6 Nov 2007 22:11:54 +0000
(22:11 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 6 Nov 2007 22:11:54 +0000
(22:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43781
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index d688465234b44b6c25d1e647efd9708d5fbca3d8..6e58631f0c1416e324f6cff582427ae2233b20e3 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
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 {