summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/BasicValueFactory.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/BasicValueFactory.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/BasicValueFactory.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp3
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);
}
OpenPOWER on IntegriCloud