aboutsummaryrefslogtreecommitdiff
path: root/Analysis/GRSimpleVals.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-14 17:31:00 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-14 17:31:00 +0000
commit63bbe5312cd89ce0ceb684bff68c5baef636e93c (patch)
tree3fbff95830634771941dd2997b69727ecc67b591 /Analysis/GRSimpleVals.cpp
parent6d39760673df2e92d9293f46ff8c66dad6ab5e0a (diff)
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
Diffstat (limited to 'Analysis/GRSimpleVals.cpp')
-rw-r--r--Analysis/GRSimpleVals.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Analysis/GRSimpleVals.cpp b/Analysis/GRSimpleVals.cpp
index a03303c079..ee5a44c48c 100644
--- a/Analysis/GRSimpleVals.cpp
+++ b/Analysis/GRSimpleVals.cpp
@@ -89,13 +89,13 @@ void EmitWarning(Diagnostic& Diag, SourceManager& SrcMgr,
}
}
-unsigned RunGRSimpleVals(CFG& cfg, FunctionDecl& FD, ASTContext& Ctx,
+unsigned RunGRSimpleVals(CFG& cfg, Decl& CD, ASTContext& Ctx,
Diagnostic& Diag, bool Visualize, bool TrimGraph) {
if (Diag.hasErrorOccurred())
return 0;
- GRCoreEngine<GRExprEngine> Eng(cfg, FD, Ctx);
+ GRCoreEngine<GRExprEngine> Eng(cfg, CD, Ctx);
GRExprEngine* CheckerState = &Eng.getCheckerState();
GRSimpleVals GRSV;
CheckerState->setTransferFunctions(GRSV);