summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitcfcec2caac382c3803cbbd5b608676f1f0d0c85f (patch)
treec51f54f65ca71b43bccd238429ed5c17276a1573 /llvm/lib
parent6156b02dd3f32ffced3e6df7e835cd8c41e5f770 (diff)
downloadbcm5719-llvm-cfcec2caac382c3803cbbd5b608676f1f0d0c85f.tar.gz
bcm5719-llvm-cfcec2caac382c3803cbbd5b608676f1f0d0c85f.zip
Add a FIXME about signedness.
llvm-svn: 32732
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
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);
OpenPOWER on IntegriCloud