From a327bb12b1cd0c142eb06e30b4f6018b96d5babf Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 21 May 2013 21:38:02 +0000 Subject: [PATCH] [analyzer; alternated edges] look through expressions just like Environment does. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182425 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/BugReporter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 3365d79a38..7cc75b6756 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1838,7 +1838,9 @@ const Stmt *getStmtParent(const Stmt *S, ParentMap &PM) { if (!S) break; - if (isa(S)) + if (isa(S) || + isa(S) || + isa(S)) continue; break;