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

Ted Kremenek kremenek at apple.com
Mon Apr 6 18:34:18 PDT 2009


Author: kremenek
Date: Mon Apr  6 20:34:17 2009
New Revision: 68483

URL: http://llvm.org/viewvc/llvm-project?rev=68483&view=rev
Log:
PathDiagnostic generation: experiment with avoiding generation of control-flow
pieces between block entrance and block end unless necessary.

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=68483&r1=68482&r2=68483&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Mon Apr  6 20:34:17 2009
@@ -989,10 +989,10 @@
 
       // Only handle blocks with more than 1 statement here, as the blocks
       // with one statement are handled at BlockEntrances.
-      if (Blk.size() > 1) {
-        const Stmt *S = *Blk.rbegin();
-        EB.addEdge(S);
-      }
+//      if (Blk.size() > 1) {
+//        const Stmt *S = *Blk.rbegin();
+//        EB.addEdge(S);
+//      }
 
       continue;
     }





More information about the cfe-commits mailing list