]> granicus.if.org Git - clang/commitdiff
[static analyzer] be more specific when running removeDeadBindings. Instead of seein...
authorTed Kremenek <kremenek@apple.com>
Fri, 11 Nov 2011 00:10:55 +0000 (00:10 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 11 Nov 2011 00:10:55 +0000 (00:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144340 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExprEngine.cpp

index eeb3451384f9f56b952804dbd25856f839c2c172..a3fd4f80dcca32cae6b5f5c2d1ba89ed51bc11e4 100644 (file)
@@ -230,7 +230,7 @@ static bool shouldRemoveDeadBindings(AnalysisManager &AMgr,
     return false;
 
   // Is this the beginning of a basic block?
-  if (!isa<StmtPoint>(Pred->getLocation()))
+  if (isa<BlockEntrance>(Pred->getLocation()))
     return true;
 
   // Is this on a non-expression?