diff options
Diffstat (limited to 'clang/lib/StaticAnalyzer/CFRefCount.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/CFRefCount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/CFRefCount.cpp b/clang/lib/StaticAnalyzer/CFRefCount.cpp index 3278c4a2bfa..2790d545206 100644 --- a/clang/lib/StaticAnalyzer/CFRefCount.cpp +++ b/clang/lib/StaticAnalyzer/CFRefCount.cpp @@ -3417,7 +3417,7 @@ void RetainReleaseChecker::PostVisitBlockExpr(CheckerContext &C, // Scan the BlockDecRefExprs for any object the retain/release checker // may be tracking. - if (!BE->hasBlockDeclRefExprs()) + if (!BE->getBlockDecl()->hasCaptures()) return; const GRState *state = C.getState(); |