summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CFG.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-07 04:26:02 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-07 04:26:02 +0000
commit89be6526c3a75f608d2c00c18bde8413547aa509 (patch)
treed14d7f9f48583c06612c7b7c9f3aff647e6f776b /clang/lib/AST/CFG.cpp
parentc790b09b8184adfb024b137aff4836d1108303fe (diff)
downloadbcm5719-llvm-89be6526c3a75f608d2c00c18bde8413547aa509.tar.gz
bcm5719-llvm-89be6526c3a75f608d2c00c18bde8413547aa509.zip
Remove hack support for @try...@finally in source-level CFGs. The current hack
had too many false positives in the analyzer. llvm-svn: 68492
Diffstat (limited to 'clang/lib/AST/CFG.cpp')
-rw-r--r--clang/lib/AST/CFG.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/lib/AST/CFG.cpp b/clang/lib/AST/CFG.cpp
index cd07aacbffc..4ec124fe021 100644
--- a/clang/lib/AST/CFG.cpp
+++ b/clang/lib/AST/CFG.cpp
@@ -898,14 +898,7 @@ CFGBlock* CFGBuilder::VisitObjCForCollectionStmt(ObjCForCollectionStmt* S) {
}
CFGBlock* CFGBuilder::VisitObjCAtTryStmt(ObjCAtTryStmt* S) {
- // Process the statements of the @finally block.
- if (ObjCAtFinallyStmt *FS = S->getFinallyStmt())
- Visit(FS->getFinallyBody());
-
- // FIXME: Handle the @catch statements.
-
- // Process the try body
- return Visit(S->getTryBody());
+ return NYS();
}
CFGBlock* CFGBuilder::VisitWhileStmt(WhileStmt* W) {
OpenPOWER on IntegriCloud