diff options
author | Anna Zaks <ganna@apple.com> | 2011-10-06 00:43:15 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-10-06 00:43:15 +0000 |
commit | 3e0f415d0d17b129919fe1b84750470cc69e1858 (patch) | |
tree | 5eb54f6415b8b1cb94b17a069bf77afbfa9c1128 /clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | |
parent | fab289a47da142d2d04c3a8d2a954ce9d4b82c8d (diff) | |
download | bcm5719-llvm-3e0f415d0d17b129919fe1b84750470cc69e1858.tar.gz bcm5719-llvm-3e0f415d0d17b129919fe1b84750470cc69e1858.zip |
[analyzer] Remove the dependency on CheckerContext::getStmt() as well as the method itself.
llvm-svn: 141262
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index b9afe0403dd..9b2331713ad 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -2409,7 +2409,7 @@ public: void printState(raw_ostream &Out, const ProgramState *State, const char *NL, const char *Sep) const; - void checkBind(SVal loc, SVal val, CheckerContext &C) const; + void checkBind(SVal loc, SVal val, const Stmt *S, CheckerContext &C) const; void checkPostStmt(const BlockExpr *BE, CheckerContext &C) const; void checkPostStmt(const CastExpr *CE, CheckerContext &C) const; @@ -3225,7 +3225,7 @@ void RetainCountChecker::checkReturnWithRetEffect(const ReturnStmt *S, // Check various ways a symbol can be invalidated. //===----------------------------------------------------------------------===// -void RetainCountChecker::checkBind(SVal loc, SVal val, +void RetainCountChecker::checkBind(SVal loc, SVal val, const Stmt *S, CheckerContext &C) const { // Are we storing to something that causes the value to "escape"? bool escapes = true; |