diff options
author | Anna Zaks <ganna@apple.com> | 2011-10-04 20:43:05 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-10-04 20:43:05 +0000 |
commit | 5d0ea6d62e076c776ddad028c4eb615783be1323 (patch) | |
tree | e7202c8c91793623816a48293f4df3acd3384546 /lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | |
parent | 118c6c0dd659d34af2ab17a126f45c1e3e02e94a (diff) |
[analyzer] Removing references to CheckerContext::getNodeBuilder(): checkers can obtain block count directly from the Context.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index 10a9c2f209..2ff8291258 100644 --- a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -3020,7 +3020,7 @@ bool RetainCountChecker::evalCall(const CallExpr *CE, CheckerContext &C) const { if (RetVal.isUnknown()) { // If the receiver is unknown, conjure a return value. SValBuilder &SVB = C.getSValBuilder(); - unsigned Count = C.getNodeBuilder().getCurrentBlockCount(); + unsigned Count = C.getCurrentBlockCount(); SVal RetVal = SVB.getConjuredSymbolVal(0, CE, ResultTy, Count); } state = state->BindExpr(CE, RetVal, false); @@ -3035,7 +3035,7 @@ bool RetainCountChecker::evalCall(const CallExpr *CE, CheckerContext &C) const { Binding = state->get<RefBindings>(Sym); // Invalidate the argument region. - unsigned Count = C.getNodeBuilder().getCurrentBlockCount(); + unsigned Count = C.getCurrentBlockCount(); state = state->invalidateRegions(ArgRegion, CE, Count); // Restore the refcount status of the argument. |