diff options
Diffstat (limited to 'clang/Analysis')
-rw-r--r-- | clang/Analysis/CFRefCount.cpp | 4 | ||||
-rw-r--r-- | clang/Analysis/GRSimpleVals.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/Analysis/CFRefCount.cpp b/clang/Analysis/CFRefCount.cpp index c87ca673b9d..5088ff7ecbf 100644 --- a/clang/Analysis/CFRefCount.cpp +++ b/clang/Analysis/CFRefCount.cpp @@ -777,7 +777,7 @@ CFRefCount::RefBindings CFRefCount::Update(RefBindings B, SymbolID sym, 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 @@ namespace clang { // 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); diff --git a/clang/Analysis/GRSimpleVals.cpp b/clang/Analysis/GRSimpleVals.cpp index a03303c079e..ee5a44c48ce 100644 --- a/clang/Analysis/GRSimpleVals.cpp +++ b/clang/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); |