CFRefCount analysis now properly calls "EmitWarnings" after analyzing a function.
llvm-svn: 49488
This commit is contained in:
parent
42d9db75f0
commit
ea1bc3bec6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue