]> granicus.if.org Git - clang/commitdiff
PathDiagnostic generation: experiment with avoiding generation of control-flow
authorTed Kremenek <kremenek@apple.com>
Tue, 7 Apr 2009 01:34:17 +0000 (01:34 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 7 Apr 2009 01:34:17 +0000 (01:34 +0000)
pieces between block entrance and block end unless necessary.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68483 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BugReporter.cpp

index b7a1cd90ac34923e44b77a3045f81ce00c6eed93..995833a29c72c9565627da7cfb80f0844d99134d 100644 (file)
@@ -989,10 +989,10 @@ static void GenerateExtensivePathDiagnostic(PathDiagnostic& PD,
 
       // 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;
     }