Add a FIXME about signedness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2006-12-21 18:59:16 +00:00
parent eefef64e59
commit d377350718

View File

@ -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);