From 90658ec72542df44eb462c69056184d2946bdbce Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 7 Apr 2009 04:26:02 +0000 Subject: [PATCH] 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 --- lib/AST/CFG.cpp | 9 +-------- 1 file changed, 1 insertion(+), 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) { -- 2.40.0