From 2f9a66debc058359653cf4d13a8c58cc34cd36bd Mon Sep 17 00:00:00 2001 From: Jordy Rose Date: Sat, 20 Aug 2011 21:17:59 +0000 Subject: [analyzer] RetainReleaseChecker always wants region change updates. There's no need for a flag, at least not right now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138212 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/CFRefCount.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/StaticAnalyzer/Core/CFRefCount.cpp') diff --git a/lib/StaticAnalyzer/Core/CFRefCount.cpp b/lib/StaticAnalyzer/Core/CFRefCount.cpp index bd404d3880..1b4e4a8673 100644 --- a/lib/StaticAnalyzer/Core/CFRefCount.cpp +++ b/lib/StaticAnalyzer/Core/CFRefCount.cpp @@ -3434,11 +3434,7 @@ class RetainReleaseChecker check::PostStmt, 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 -- cgit v1.2.3-18-g5258