[cfe-commits] r169528 - /cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp

Jordan Rose jordan_rose at apple.com
Thu Dec 6 10:58:22 PST 2012


Author: jrose
Date: Thu Dec  6 12:58:22 2012
New Revision: 169528

URL: http://llvm.org/viewvc/llvm-project?rev=169528&view=rev
Log:
[analyzer] Remove checks that predate the linearized CFG.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp?rev=169528&r1=169527&r2=169528&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp Thu Dec  6 12:58:22 2012
@@ -527,16 +527,7 @@
   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.





More information about the cfe-commits mailing list