]> granicus.if.org Git - clang/commitdiff
Remove hack support for @try...@finally in source-level CFGs. The current hack
authorTed Kremenek <kremenek@apple.com>
Tue, 7 Apr 2009 04:26:02 +0000 (04:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 7 Apr 2009 04:26:02 +0000 (04:26 +0000)
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

index cd07aacbffc96e7512ac94ce716e671ef78bebaa..4ec124fe021750f07e7da718c17ced8ddc59103c 100644 (file)
@@ -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) {