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/BasicValueFactory.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/BasicValueFactory.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp b/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp index ae8a04ce439..0ed4ff14317 100644 --- a/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp +++ b/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp @@ -101,7 +101,8 @@ const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth, const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, QualType T) { unsigned bits = Ctx.getTypeSize(T); - llvm::APSInt V(bits, T->isUnsignedIntegerType() || Loc::isLocType(T)); + llvm::APSInt V(bits, + T->isUnsignedIntegerOrEnumerationType() || Loc::isLocType(T)); V = X; return getValue(V); } |