summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-05-21 16:28:01 +0000
committerDouglas Gregor <dgregor@apple.com>2011-05-21 16:28:01 +0000
commit61b6e49ee194d495f3e3a8d731ca009a5b0e77bd (patch)
tree388ac8f7091ee273eb62400a6e6ceba01190e77f /clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
parent253cadfe681611bebb1addc47911b2f3f2bc2088 (diff)
downloadbcm5719-llvm-61b6e49ee194d495f3e3a8d731ca009a5b0e77bd.tar.gz
bcm5719-llvm-61b6e49ee194d495f3e3a8d731ca009a5b0e77bd.zip
A few more is(Un)signedIntegerType/is(Un)signedOrEnumerationType cleanups.
llvm-svn: 131793
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp b/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
index 1ee694ef8a1..20762e07dd2 100644
--- a/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
+++ b/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
@@ -262,7 +262,8 @@ const GRState *SimpleConstraintManager::assumeSymRel(const GRState *state,
QualType T = Sym->getType(Ctx);
assert(T->isIntegerType() || Loc::isLocType(T));
unsigned bitwidth = Ctx.getTypeSize(T);
- bool isSymUnsigned = T->isUnsignedIntegerType() || Loc::isLocType(T);
+ bool isSymUnsigned
+ = T->isUnsignedIntegerOrEnumerationType() || Loc::isLocType(T);
// Convert the adjustment.
Adjustment.setIsUnsigned(isSymUnsigned);
OpenPOWER on IntegriCloud