From f4e15fc4c15c62184b7a759e38a135d133a17c8d Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 26 Feb 2008 02:37:08 +0000 Subject: [PATCH] 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 --- AST/CFG.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.50.1