From: Ted Kremenek Date: Tue, 26 Feb 2008 02:37:08 +0000 (+0000) Subject: Do include ParenExpr in the CFG; only include their subexpression. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4e15fc4c15c62184b7a759e38a135d133a17c8d;p=clang 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 --- 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(S)->getSubExpr(), AlwaysAddStmt); default: break;