aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-21 18:59:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-21 18:59:16 +0000
commitd3773507188d550a3ce5be09662235cf23679811 (patch)
tree252a83e2e1b9bd47d7329aa7f51b022de5522809 /lib/Analysis
parenteefef64e591a851a47cd0525d96616ba99f73c75 (diff)
downloadexternal_llvm-d3773507188d550a3ce5be09662235cf23679811.zip
external_llvm-d3773507188d550a3ce5be09662235cf23679811.tar.gz
external_llvm-d3773507188d550a3ce5be09662235cf23679811.tar.bz2
Add a FIXME about signedness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index ec98adc..bc1f9a0 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/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);