diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-08-28 16:18:58 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-08-28 16:18:58 +0000 |
| commit | 91e8d2a9745d070643a2a20dda58b8109ce51e27 (patch) | |
| tree | 4d4b4e86aafe1202c022fe8854a2f511d8e4e2c5 /clang/AST/CFG.cpp | |
| parent | a5b10b334f0f5bb3393763bb32038103f75ba4f3 (diff) | |
| download | bcm5719-llvm-91e8d2a9745d070643a2a20dda58b8109ce51e27.tar.gz bcm5719-llvm-91e8d2a9745d070643a2a20dda58b8109ce51e27.zip | |
Removed special-casing in CFG construction for ParenExprs.
llvm-svn: 41540
Diffstat (limited to 'clang/AST/CFG.cpp')
| -rw-r--r-- | clang/AST/CFG.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/clang/AST/CFG.cpp b/clang/AST/CFG.cpp index b79bfe519b3..64a75b20084 100644 --- a/clang/AST/CFG.cpp +++ b/clang/AST/CFG.cpp @@ -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. |

