Path-sensitive analyses no longer take a FunctionDecl, but any Decl representing
a block of "code".
Patched various ASTConsumers (such as ASTDumper) to have more support for
processing ObjCMethodDecl. CFGVisitor now builds CFGs for ObjCMethodDecls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48363 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Analysis/CFRefCount.cpp b/Analysis/CFRefCount.cpp
index c87ca67..5088ff7 100644
--- a/Analysis/CFRefCount.cpp
+++ b/Analysis/CFRefCount.cpp
@@ -777,7 +777,7 @@
namespace clang {
- void CheckCFRefCount(CFG& cfg, FunctionDecl& FD, ASTContext& Ctx,
+ void CheckCFRefCount(CFG& cfg, Decl& CD, ASTContext& Ctx,
Diagnostic& Diag) {
if (Diag.hasErrorOccurred())
@@ -785,7 +785,7 @@
// FIXME: Refactor some day so this becomes a single function invocation.
- GRCoreEngine<GRExprEngine> Eng(cfg, FD, Ctx);
+ GRCoreEngine<GRExprEngine> Eng(cfg, CD, Ctx);
GRExprEngine* CS = &Eng.getCheckerState();
CFRefCount TF;
CS->setTransferFunctions(TF);