]> granicus.if.org Git - clang/commitdiff
[analyzer; alternated edges] look through expressions just like Environment does.
authorTed Kremenek <kremenek@apple.com>
Tue, 21 May 2013 21:38:02 +0000 (21:38 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 21 May 2013 21:38:02 +0000 (21:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182425 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporter.cpp

index 3365d79a38c669030c6d9123afcf0cf83949f35f..7cc75b67561e529c60af424ba136e4697a314d5b 100644 (file)
@@ -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;