summaryrefslogtreecommitdiffstats
path: root/clang/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
commit6d5bbec32e7e175b6623f1109b2ca6fad4335d21 (patch)
tree7c23c0bad441837c21db515105f8ed33e94877f4 /clang/lib/StaticAnalyzer/Core/BugReporter.cpp
parentcecf8289723ae827f6730e7fe4e8e0684f6d0620 (diff)
downloadbcm5719-llvm-6d5bbec32e7e175b6623f1109b2ca6fad4335d21.tar.gz
bcm5719-llvm-6d5bbec32e7e175b6623f1109b2ca6fad4335d21.zip
[analyzer; alternated edges] look through expressions just like Environment does.
llvm-svn: 182425
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/BugReporter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
index 3365d79a38c..7cc75b67561 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud