diff options
author | Jordy Rose <jediknil@belkadan.com> | 2012-03-24 03:03:29 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2012-03-24 03:03:29 +0000 |
commit | 3bc75ca0a636efdc93471c9b6bad43085a22bf3a (patch) | |
tree | c81cd3a425e0e617d43fc04216e248d1f1a0f8b0 /lib/StaticAnalyzer/Checkers/MallocChecker.cpp | |
parent | 011534973e83db51f49098871186238fc64d5f54 (diff) |
[analyzer] Restart path diagnostic generation if any of the visitors change the report configuration while walking the path.
This required adding a change count token to BugReport, but also allowed us to ditch ImmutableList as the BugReporterVisitor data type.
Also, remove the hack from MallocChecker, now that visitors appear in the opposite order. This is not exactly a fix, but the common case -- custom diagnostics after generic ones -- is now the default behavior.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index 8f4502ca31..f5218746be 100644 --- a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -875,10 +875,6 @@ void MallocChecker::reportLeak(SymbolRef Sym, ExplodedNode *N, BugReport *R = new BugReport(*BT_Leak, os.str(), N, LocUsedForUniqueing); R->markInteresting(Sym); - // FIXME: This is a hack to make sure the MallocBugVisitor gets to look at - // the ExplodedNode chain first, in order to mark any failed realloc symbols - // as interesting for ConditionBRVisitor. - R->addVisitor(new ConditionBRVisitor()); R->addVisitor(new MallocBugVisitor(Sym)); C.EmitReport(R); } |