summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-07 01:34:17 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-07 01:34:17 +0000
commit86d52c4c02b63cb40a7f310c035ff791aeaee9d7 (patch)
treee4210c998fe781c4fc719677b27b9b122dcdac06 /clang
parent4fab57ddeafc95d65610422b9d3e42bb76c15e96 (diff)
downloadbcm5719-llvm-86d52c4c02b63cb40a7f310c035ff791aeaee9d7.tar.gz
bcm5719-llvm-86d52c4c02b63cb40a7f310c035ff791aeaee9d7.zip
PathDiagnostic generation: experiment with avoiding generation of control-flow
pieces between block entrance and block end unless necessary. llvm-svn: 68483
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Analysis/BugReporter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index b7a1cd90ac3..995833a29c7 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -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;
}
OpenPOWER on IntegriCloud