diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-05-21 16:28:01 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-05-21 16:28:01 +0000 |
commit | 61b6e49ee194d495f3e3a8d731ca009a5b0e77bd (patch) | |
tree | 388ac8f7091ee273eb62400a6e6ceba01190e77f /clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp | |
parent | 253cadfe681611bebb1addc47911b2f3f2bc2088 (diff) | |
download | bcm5719-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.cpp | 3 |
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); |