From: Ted Kremenek Date: Tue, 21 May 2013 21:38:02 +0000 (+0000) Subject: [analyzer; alternated edges] look through expressions just like Environment does. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a327bb12b1cd0c142eb06e30b4f6018b96d5babf;p=clang [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 --- 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;