diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-05-21 21:38:02 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-05-21 21:38:02 +0000 |
commit | 6d5bbec32e7e175b6623f1109b2ca6fad4335d21 (patch) | |
tree | 7c23c0bad441837c21db515105f8ed33e94877f4 /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | cecf8289723ae827f6730e7fe4e8e0684f6d0620 (diff) | |
download | bcm5719-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.cpp | 4 |
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; |