[cfe-commits] r68476 - /cfe/trunk/lib/Analysis/BugReporter.cpp

Ted Kremenek kremenek at apple.com
Mon Apr 6 17:11:40 PDT 2009


Author: kremenek
Date: Mon Apr  6 19:11:40 2009
New Revision: 68476

URL: http://llvm.org/viewvc/llvm-project?rev=68476&view=rev
Log:
Don't overguard to adding a control-flow piece when "alwaysAdd" is true.

Modified:
    cfe/trunk/lib/Analysis/BugReporter.cpp

Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=68476&r1=68475&r2=68476&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Mon Apr  6 19:11:40 2009
@@ -914,7 +914,7 @@
     
     // Is the top location context the same as the one for the new location?
     if (TopContextLoc == CLoc) {
-      if (alwaysAdd && NewLoc.asLocation() != CLoc.asLocation())
+      if (alwaysAdd)
         rawAddEdge(NewLoc);
 
       return;
@@ -949,7 +949,7 @@
       return;
 
     if (containsLocation(TopContextLoc, L)) {
-    //   if (const Stmt *S = L.asStmt())
+    // /  if (const Stmt *S = L.asStmt())
     //     if (isa<Expr>(S))
     //       if (const Stmt *P = PDB.getParent(S))
     //         addContext(PDB.getEnclosingStmtLocation(P).asStmt());





More information about the cfe-commits mailing list