aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-02-26 02:37:08 +0000
committerTed Kremenek <kremenek@apple.com>2008-02-26 02:37:08 +0000
commitf4e15fc4c15c62184b7a759e38a135d133a17c8d (patch)
tree842a989ea980572b90de66bfa2efbdc715ba79dd
parentd763eb91aab5bdecd11825fadb35d6d8cc905f63 (diff)
Do include ParenExpr in the CFG; only include their subexpression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47588 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/CFG.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/AST/CFG.cpp b/AST/CFG.cpp
index 18c2074b40..335d833e26 100644
--- a/AST/CFG.cpp
+++ b/AST/CFG.cpp
@@ -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;