summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-12-06 18:58:22 +0000
committerJordan Rose <jordan_rose@apple.com>2012-12-06 18:58:22 +0000
commitde606eaf189f2018125895cb96a5e551070c461d (patch)
treefd549c2a41614f14a3ebde5981254f121ee0f7c6
parentff03c1d26d1953713409a09f9551f1ec8d7d25c9 (diff)
downloadbcm5719-llvm-de606eaf189f2018125895cb96a5e551070c461d.tar.gz
bcm5719-llvm-de606eaf189f2018125895cb96a5e551070c461d.zip
[analyzer] Remove checks that predate the linearized CFG.
llvm-svn: 169528
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 9ca5421e181..c5105412b6e 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -527,16 +527,7 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred,
ExplodedNodeSet Dst;
StmtNodeBuilder Bldr(Pred, DstTop, *currBldrCtx);
- // Expressions to ignore.
- if (const Expr *Ex = dyn_cast<Expr>(S))
- S = Ex->IgnoreParens();
-
- // FIXME: add metadata to the CFG so that we can disable
- // this check when we KNOW that there is no block-level subexpression.
- // The motivation is that this check requires a hashtable lookup.
-
- if (S != currStmt && Pred->getLocationContext()->getCFG()->isBlkExpr(S))
- return;
+ assert(!isa<Expr>(S) || S == cast<Expr>(S)->IgnoreParens());
switch (S->getStmtClass()) {
// C++ and ARC stuff we don't support yet.
OpenPOWER on IntegriCloud