aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-07-29 21:18:26 +0000
committerTed Kremenek <kremenek@apple.com>2011-07-29 21:18:26 +0000
commit003ec6ff83251add572cd80481e6e3334f5c39f8 (patch)
tree2e1221eddae17702b7f207060112cd0d97ac0d49
parentf8c0bcf101369ac08f84283f137eccb9b2c25f75 (diff)
downloadllvm-003ec6ff83251add572cd80481e6e3334f5c39f8.zip
llvm-003ec6ff83251add572cd80481e6e3334f5c39f8.tar.gz
llvm-003ec6ff83251add572cd80481e6e3334f5c39f8.tar.bz2
[analyzer] tighten up ExprEngine::VisitObjCAtSynchronizationStmt().
llvm-svn: 136516
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 323b1c2..98662c1 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -1786,16 +1786,9 @@ void ExprEngine::evalEagerlyAssume(ExplodedNodeSet &Dst, ExplodedNodeSet &Src,
//===----------------------------------------------------------------------===//
void ExprEngine::VisitObjCAtSynchronizedStmt(const ObjCAtSynchronizedStmt *S,
- ExplodedNode *Pred,
- ExplodedNodeSet &Dst) {
-
- // The mutex expression is a CFGElement, so we don't need to explicitly
- // visit it since it will already be processed.
-
- // Pre-visit the ObjCAtSynchronizedStmt.
- ExplodedNodeSet Tmp;
- Tmp.Add(Pred);
- getCheckerManager().runCheckersForPreStmt(Dst, Tmp, S, *this);
+ ExplodedNode *Pred,
+ ExplodedNodeSet &Dst) {
+ getCheckerManager().runCheckersForPreStmt(Dst, Pred, S, *this);
}
//===----------------------------------------------------------------------===//