summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2012-03-24 02:45:35 +0000
committerJordy Rose <jediknil@belkadan.com>2012-03-24 02:45:35 +0000
commitf78877e99a85b2396ea93ebc2f08452a9c5bc795 (patch)
treebc5e70cc976f5a68839d99e16f22ac75a8b03759 /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
parent6db850133f66abbe89a2d6c0f161c063eba79840 (diff)
downloadbcm5719-llvm-f78877e99a85b2396ea93ebc2f08452a9c5bc795.tar.gz
bcm5719-llvm-f78877e99a85b2396ea93ebc2f08452a9c5bc795.zip
[analyzer] Add a clone() method to BugReporterVisitor, so that we'll be able to reset diagnostic generation.
llvm-svn: 153368
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
index 502fb1ed756..8f4502ca319 100644
--- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
@@ -197,7 +197,7 @@ private:
/// The bug visitor which allows us to print extra diagnostics along the
/// BugReport path. For example, showing the allocation site of the leaked
/// region.
- class MallocBugVisitor : public BugReporterVisitor {
+ class MallocBugVisitor : public BugReporterVisitorImpl<MallocBugVisitor> {
protected:
enum NotificationMode {
Normal,
OpenPOWER on IntegriCloud