Fix some bonehead bugs in summary generation in CFRefCount.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49503 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp
index 4537a7f..defa7a1 100644
--- a/Driver/ASTConsumers.cpp
+++ b/Driver/ASTConsumers.cpp
@@ -636,6 +636,7 @@
namespace {
class CheckerConsumer : public CFGVisitor {
+protected:
Diagnostic &Diags;
ASTContext* Ctx;
const std::string& HTMLDir;
@@ -755,7 +756,7 @@
virtual const char* getCheckerName() { return "CFRefCountChecker"; }
virtual GRTransferFuncs* getTransferFunctions() {
- return MakeCFRefCountTF();
+ return MakeCFRefCountTF(*Ctx);
}
};
} // end anonymous namespace