summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/CFRefCount.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-16 00:17:44 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-16 00:17:44 +0000
commitb90df60b3b0f7c51baaa0558e4fc2f371164294e (patch)
tree7d71b5ba31bfd3ed340110780b5394b02df0d8b7 /clang/lib/Checker/CFRefCount.cpp
parent00bdca561aad6f418e7a13fce9163e8c985db0ad (diff)
downloadbcm5719-llvm-b90df60b3b0f7c51baaa0558e4fc2f371164294e.tar.gz
bcm5719-llvm-b90df60b3b0f7c51baaa0558e4fc2f371164294e.zip
Introduce Type::isIntegralOrEnumerationType(), to cover those places
in C++ that involve both integral and enumeration types. Convert all of the callers to Type::isIntegralType() that are meant to work with both integral and enumeration types over to Type::isIntegralOrEnumerationType(), to prepare to eliminate enumeration types as integral types. llvm-svn: 106071
Diffstat (limited to 'clang/lib/Checker/CFRefCount.cpp')
-rw-r--r--clang/lib/Checker/CFRefCount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/CFRefCount.cpp b/clang/lib/Checker/CFRefCount.cpp
index 42e6f67f017..c2c47333c4d 100644
--- a/clang/lib/Checker/CFRefCount.cpp
+++ b/clang/lib/Checker/CFRefCount.cpp
@@ -2659,7 +2659,7 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst,
// approriately delegated to the respective StoreManagers while
// still allowing us to do checker-specific logic (e.g.,
// invalidating reference counts), probably via callbacks.
- if (ER->getElementType()->isIntegralType()) {
+ if (ER->getElementType()->isIntegralOrEnumerationType()) {
const MemRegion *superReg = ER->getSuperRegion();
if (isa<VarRegion>(superReg) || isa<FieldRegion>(superReg) ||
isa<ObjCIvarRegion>(superReg))
OpenPOWER on IntegriCloud