]> granicus.if.org Git - clang/commitdiff
Removed special-casing in CFG construction for ParenExprs.
authorTed Kremenek <kremenek@apple.com>
Tue, 28 Aug 2007 16:18:58 +0000 (16:18 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 28 Aug 2007 16:18:58 +0000 (16:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41540 91177308-0d34-0410-b5e6-96231b3b80d8

AST/CFG.cpp

index b79bfe519b3845d4cd0344e692ca806c5a2a760e..64a75b20084d81b39597d0ce57b4e2ede4820ad2 100644 (file)
@@ -83,7 +83,6 @@ public:
   
   CFGBlock* VisitStmt(Stmt* Statement);
   CFGBlock* VisitNullStmt(NullStmt* Statement);
-  CFGBlock* VisitParenExpr(ParenExpr* Statement);
   CFGBlock* VisitCompoundStmt(CompoundStmt* C);
   CFGBlock* VisitIfStmt(IfStmt* I);
   CFGBlock* VisitReturnStmt(ReturnStmt* R);
@@ -210,10 +209,7 @@ CFGBlock* CFGBuilder::WalkAST(Stmt* S, bool AlwaysAddStmt = false) {
       Block->setTerminator(C);
       return addStmt(C->getCond());
     }
-    
-    case Stmt::ParenExprClass:
-      return WalkAST(cast<ParenExpr>(S)->getSubExpr(),AlwaysAddStmt);
-    
+
     case Stmt::BinaryOperatorClass: {
       BinaryOperator* B = cast<BinaryOperator>(S);
 
@@ -277,11 +273,6 @@ CFGBlock* CFGBuilder::VisitNullStmt(NullStmt* Statement) {
   return Block;
 }
 
-CFGBlock* CFGBuilder::VisitParenExpr(ParenExpr* Statement) {
-  return Visit(Statement->getSubExpr());
-}
-  
-
 CFGBlock* CFGBuilder::VisitCompoundStmt(CompoundStmt* C) {
   //   The value returned from this function is the last created CFGBlock
   //   that represents the "entry" point for the translated AST node.