summaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-05-21 21:38:02 +0000
committerTed Kremenek <kremenek@apple.com>2013-05-21 21:38:02 +0000
commita327bb12b1cd0c142eb06e30b4f6018b96d5babf (patch)
tree86573c4307fc89560fad03bac5921aeb373ef888 /lib/StaticAnalyzer/Core/BugReporter.cpp
parent569b4ad6506960f1a7f191107c185cb1566a7fbb (diff)
downloadclang-a327bb12b1cd0c142eb06e30b4f6018b96d5babf.tar.gz
clang-a327bb12b1cd0c142eb06e30b4f6018b96d5babf.tar.bz2
clang-a327bb12b1cd0c142eb06e30b4f6018b96d5babf.tar.xz
[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
Diffstat (limited to 'lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/BugReporter.cpp4
1 files changed, 3 insertions, 1 deletions
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<ExprWithCleanups>(S))
+ if (isa<ExprWithCleanups>(S) ||
+ isa<CXXBindTemporaryExpr>(S) ||
+ isa<SubstNonTypeTemplateParmExpr>(S))
continue;
break;