[analyzer] Remove checks that predate the linearized CFG.

llvm-svn: 169528
This commit is contained in:
Jordan Rose 2012-12-06 18:58:22 +00:00
parent ff03c1d26d
commit de606eaf18
1 changed files with 1 additions and 10 deletions

View File

@ -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.