]> granicus.if.org Git - clang/commitdiff
Fix regression: Leak (BugType) object should have 'isLeak()' return true.
authorTed Kremenek <kremenek@apple.com>
Thu, 5 Feb 2009 00:38:00 +0000 (00:38 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 5 Feb 2009 00:38:00 +0000 (00:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63803 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index e42fa8614cccde67123c400cfb646218bed07dee..8cd82e2771d95d3a9fd05301ae4e336112c56ad6 100644 (file)
@@ -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 {