diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-04-12 21:47:02 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-04-12 21:47:02 +0000 |
commit | 1212f807af8aa93689845d18eb5a260718c77e57 (patch) | |
tree | d2da164ce674b4e734052e01e6209296a12201fb /lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp | |
parent | 09fbf297da918760ce33302a3f709a77f43af265 (diff) |
Fix another IdempotentOperationsChecker corner case when determining if an active block on the worklist
impacts the results of the check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp b/lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp index 3c8d45ee2d..4f4aabcf63 100644 --- a/lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp @@ -588,7 +588,7 @@ IdempotentOperationChecker::pathWasCompletelyAnalyzed(AnalysisContext *AC, if (!B) return true; - return CRA.isReachable(B, TargetBlock); + return B == TargetBlock || CRA.isReachable(B, TargetBlock); } }; VisitWL visitWL(AC->getCFGStmtMap(), CB, *CRA); |