diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-11-03 23:30:34 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-11-03 23:30:34 +0000 |
| commit | 0fbbb0877dbb06d2f0191d6ef8b75b69c5035473 (patch) | |
| tree | 7c27b3eb051f4952036ac7f8e0c30ced56a79819 /clang/lib/Analysis/CFRefCount.cpp | |
| parent | 53f9ded62b69c259f96be86fecc3c15e2398d404 (diff) | |
| download | bcm5719-llvm-0fbbb0877dbb06d2f0191d6ef8b75b69c5035473.tar.gz bcm5719-llvm-0fbbb0877dbb06d2f0191d6ef8b75b69c5035473.zip | |
Change GRTransferFuncs::RegisterChecks() to take a GRExprEngine& instead of a BugReporter&. This paves the way for pulling some of the retain/release checker into a "Checker" class.
llvm-svn: 85971
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
| -rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 574a6184704..03614e83398 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -1899,7 +1899,7 @@ public: virtual ~CFRefCount() {} - void RegisterChecks(BugReporter &BR); + void RegisterChecks(GRExprEngine &Eng); virtual void RegisterPrinters(std::vector<GRState::Printer*>& Printers) { Printers.push_back(new BindingsPrinter()); @@ -2193,7 +2193,9 @@ namespace { }; } // end anonymous namespace -void CFRefCount::RegisterChecks(BugReporter& BR) { +void CFRefCount::RegisterChecks(GRExprEngine& Eng) { + BugReporter &BR = Eng.getBugReporter(); + useAfterRelease = new UseAfterRelease(this); BR.Register(useAfterRelease); |

