]> granicus.if.org Git - clang/commitdiff
Do include ParenExpr in the CFG; only include their subexpression.
authorTed Kremenek <kremenek@apple.com>
Tue, 26 Feb 2008 02:37:08 +0000 (02:37 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 26 Feb 2008 02:37:08 +0000 (02:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47588 91177308-0d34-0410-b5e6-96231b3b80d8

AST/CFG.cpp

index 18c2074b406f4f1d0bc607d9fef5f219b114d73f..335d833e262c3d18cfaf528dcab67d213dc899e5 100644 (file)
@@ -375,6 +375,9 @@ CFGBlock* CFGBuilder::WalkAST(Stmt* S, bool AlwaysAddStmt = false) {
       
       break;
     }
+      
+    case Stmt::ParenExprClass:
+      return WalkAST(cast<ParenExpr>(S)->getSubExpr(), AlwaysAddStmt);
     
     default:
       break;