CFRefCount analysis now properly calls "EmitWarnings" after analyzing a function.

llvm-svn: 49488
This commit is contained in:
Ted Kremenek 2008-04-10 16:21:09 +00:00
parent 42d9db75f0
commit ea1bc3bec6
1 changed files with 1 additions and 4 deletions

View File

@ -885,14 +885,11 @@ void CheckCFRefCount(CFG& cfg, Decl& CD, ASTContext& Ctx,
if (Diag.hasErrorOccurred())
return;
// FIXME: Refactor some day so this becomes a single function invocation.
GRExprEngine Eng(cfg, CD, Ctx);
CFRefCount TF;
Eng.setTransferFunctions(TF);
Eng.ExecuteWorkList();
// FIXME: Emit warnings.
Eng.EmitWarnings(Diag, PD);
}
} // end clang namespace