From 0a7dd5a2a4d5dd6c07660e261a8de88ceee5df56 Mon Sep 17 00:00:00 2001 From: Artem Dergachev Date: Fri, 19 Apr 2019 20:23:29 +0000 Subject: Reapply "[analyzer] Introduce a simplified API for adding custom path notes." This reapplies commit r357323, fixing memory leak found by LSan. Differential Revision: https://reviews.llvm.org/D58367 llvm-svn: 358781 --- clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp') diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index 1cea44f1d85..168050955f2 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -2611,6 +2611,7 @@ std::pair> findValidReport( R->addVisitor(llvm::make_unique()); R->addVisitor(llvm::make_unique()); R->addVisitor(llvm::make_unique()); + R->addVisitor(llvm::make_unique()); BugReporterContext BRC(Reporter, ErrorGraph.BackMap); -- cgit v1.2.3