aboutsummaryrefslogtreecommitdiff
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
commit90658ec72542df44eb462c69056184d2946bdbce (patch)
tree4fa483e814adb3a0d68d934c1aa019fec5358980
parent16fd3a9f5159b74bfdd65cf290b4bd091088de91 (diff)
Remove hack support for @try...@finally in source-level CFGs. The current hack
had too many false positives in the analyzer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68492 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/CFG.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/AST/CFG.cpp b/lib/AST/CFG.cpp
index cd07aacbff..4ec124fe02 100644
--- a/lib/AST/CFG.cpp
+++ b/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) {