diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-30 01:58:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-30 01:58:33 +0000 |
commit | 34beb046ea3bd9e7f2c03c151dcaf3328e365010 (patch) | |
tree | 8ff55db030c8ce02b99b35c71a6555757aa7535b /clang/lib/Analysis/BasicConstraintManager.cpp | |
parent | caffe92d865fb9d6fd1c1332ba38943dddaf9bd4 (diff) | |
download | bcm5719-llvm-34beb046ea3bd9e7f2c03c151dcaf3328e365010.tar.gz bcm5719-llvm-34beb046ea3bd9e7f2c03c151dcaf3328e365010.zip |
update for change in API.
llvm-svn: 63363
Diffstat (limited to 'clang/lib/Analysis/BasicConstraintManager.cpp')
-rw-r--r-- | clang/lib/Analysis/BasicConstraintManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Analysis/BasicConstraintManager.cpp b/clang/lib/Analysis/BasicConstraintManager.cpp index f14ada7aed6..0c98bf64502 100644 --- a/clang/lib/Analysis/BasicConstraintManager.cpp +++ b/clang/lib/Analysis/BasicConstraintManager.cpp @@ -345,7 +345,7 @@ BasicConstraintManager::AssumeSymLT(const GRState* St, SymbolRef sym, const llvm::APSInt& V, bool& isFeasible) { // Is 'V' the smallest possible value? - if (V == llvm::APSInt::getMinValue(V.getBitWidth(), V.isSigned())) { + if (V == llvm::APSInt::getMinValue(V.getBitWidth(), V.isUnsigned())) { // sym cannot be any value less than 'V'. This path is infeasible. isFeasible = false; return St; @@ -360,7 +360,7 @@ BasicConstraintManager::AssumeSymGT(const GRState* St, SymbolRef sym, const llvm::APSInt& V, bool& isFeasible) { // Is 'V' the largest possible value? - if (V == llvm::APSInt::getMaxValue(V.getBitWidth(), V.isSigned())) { + if (V == llvm::APSInt::getMaxValue(V.getBitWidth(), V.isUnsigned())) { // sym cannot be any value greater than 'V'. This path is infeasible. isFeasible = false; return St; @@ -382,7 +382,7 @@ BasicConstraintManager::AssumeSymGE(const GRState* St, SymbolRef sym, // Sym is not a constant, but it is worth looking to see if V is the // maximum integer value. - if (V == llvm::APSInt::getMaxValue(V.getBitWidth(), V.isSigned())) { + if (V == llvm::APSInt::getMaxValue(V.getBitWidth(), V.isUnsigned())) { // If we know that sym != V, then this condition is infeasible since // there is no other value greater than V. isFeasible = !isNotEqual(St, sym, V); @@ -411,7 +411,7 @@ BasicConstraintManager::AssumeSymLE(const GRState* St, SymbolRef sym, // Sym is not a constant, but it is worth looking to see if V is the // minimum integer value. - if (V == llvm::APSInt::getMinValue(V.getBitWidth(), V.isSigned())) { + if (V == llvm::APSInt::getMinValue(V.getBitWidth(), V.isUnsigned())) { // If we know that sym != V, then this condition is infeasible since // there is no other value less than V. isFeasible = !isNotEqual(St, sym, V); |