summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2011-08-20 21:17:59 +0000
committerJordy Rose <jediknil@belkadan.com>2011-08-20 21:17:59 +0000
commita8f99ba749e266a6b20bbefdfbc5e5b31b9aa059 (patch)
tree6539adf37c580e042b816906096b7d0b4c27196f /clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
parent5c252ef7b1585794159a4dd78ecf4d8860d41b5e (diff)
downloadbcm5719-llvm-a8f99ba749e266a6b20bbefdfbc5e5b31b9aa059.tar.gz
bcm5719-llvm-a8f99ba749e266a6b20bbefdfbc5e5b31b9aa059.zip
[analyzer] RetainReleaseChecker always wants region change updates. There's no need for a flag, at least not right now.
llvm-svn: 138212
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/CFRefCount.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/CFRefCount.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp b/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
index bd404d38801..1b4e4a8673d 100644
--- a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
+++ b/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
@@ -3434,11 +3434,7 @@ class RetainReleaseChecker
check::PostStmt<CastExpr>,
check::RegionChanges,
eval::Assume > {
-public:
- bool wantsRegionUpdate;
-
- RetainReleaseChecker() : wantsRegionUpdate(true) {}
-
+public:
void checkBind(SVal loc, SVal val, CheckerContext &C) const;
void checkPostStmt(const BlockExpr *BE, CheckerContext &C) const;
void checkPostStmt(const CastExpr *CE, CheckerContext &C) const;
@@ -3452,7 +3448,7 @@ public:
const MemRegion * const *end) const;
bool wantsRegionChangeUpdate(const ProgramState *state) const {
- return wantsRegionUpdate;
+ return true;
}
};
} // end anonymous namespace
OpenPOWER on IntegriCloud