From e45e57f8b846a3bdee1ecc9445a9bb28e4e9fbac Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 5 Feb 2009 00:38:00 +0000 Subject: [PATCH] Fix regression: Leak (BugType) object should have 'isLeak()' return true. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63803 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/CFRefCount.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index e42fa8614c..8cd82e2771 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -2207,6 +2207,8 @@ namespace { const char* getDescription() const { return "leak"; } void FlushReports(BugReporter &BR); + + bool isLeak() const { return true; } }; class VISIBILITY_HIDDEN LeakAtReturn : public Leak { -- 2.50.1