diff options
| author | Dan Gohman <gohman@apple.com> | 2010-04-30 19:21:13 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-04-30 19:21:13 +0000 |
| commit | a2b8ffc0e66d3599a355f9e6e6c593896896e83e (patch) | |
| tree | 8df3b2a2a0f471db4fb11ddd842a8c4516935860 /lib/Analysis | |
| parent | ff835699bbdbb3b74a2d6e032023444bc5797fa0 (diff) | |
| download | external_llvm-a2b8ffc0e66d3599a355f9e6e6c593896896e83e.zip external_llvm-a2b8ffc0e66d3599a355f9e6e6c593896896e83e.tar.gz external_llvm-a2b8ffc0e66d3599a355f9e6e6c593896896e83e.tar.bz2 | |
Silence compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
| -rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 0ef5d84..d6b4f3f 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -3930,14 +3930,14 @@ ScalarEvolution::ComputeBackedgeTakenCountFromExitCondICmp(const Loop *L, /*HasNUW=*/false, /*HasNSW=*/true); Cond = ICmpInst::ICMP_SLT; } else if (!getSignedRange(LHS).getSignedMin().isMinSignedValue()) { - LHS = getAddExpr(getConstant(RHS->getType(), -1, true), LHS, + LHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), LHS, /*HasNUW=*/false, /*HasNSW=*/true); Cond = ICmpInst::ICMP_SLT; } break; case ICmpInst::ICMP_SGE: if (!getSignedRange(RHS).getSignedMin().isMinSignedValue()) { - RHS = getAddExpr(getConstant(RHS->getType(), -1, true), RHS, + RHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), RHS, /*HasNUW=*/false, /*HasNSW=*/true); Cond = ICmpInst::ICMP_SGT; } else if (!getSignedRange(LHS).getSignedMax().isMaxSignedValue()) { @@ -3952,14 +3952,14 @@ ScalarEvolution::ComputeBackedgeTakenCountFromExitCondICmp(const Loop *L, /*HasNUW=*/true, /*HasNSW=*/false); Cond = ICmpInst::ICMP_ULT; } else if (!getUnsignedRange(LHS).getUnsignedMin().isMinValue()) { - LHS = getAddExpr(getConstant(RHS->getType(), -1, false), LHS, + LHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, false), LHS, /*HasNUW=*/true, /*HasNSW=*/false); Cond = ICmpInst::ICMP_ULT; } break; case ICmpInst::ICMP_UGE: if (!getUnsignedRange(RHS).getUnsignedMin().isMinValue()) { - RHS = getAddExpr(getConstant(RHS->getType(), -1, false), RHS, + RHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, false), RHS, /*HasNUW=*/true, /*HasNSW=*/false); Cond = ICmpInst::ICMP_UGT; } else if (!getUnsignedRange(LHS).getUnsignedMax().isMaxValue()) { |
