diff options
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index ec98adc9e24..bc1f9a0d307 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -2151,6 +2151,8 @@ SolveQuadraticEquation(const SCEVAddRecExpr *AddRec) { Constant *TwoA = ConstantExpr::getMul(A, Two); // The divisions must be performed as signed divisions. + // FIXME:Signedness. These casts can all go away once integer types are + // signless. const Type *SignedTy = NegB->getType()->getSignedVersion(); NegB = ConstantExpr::getBitCast(NegB, SignedTy); TwoA = ConstantExpr::getBitCast(TwoA, SignedTy); |

