From f84afb77a0e948451a521fabde08234e2bd2c646 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 10 Apr 2008 16:21:09 +0000 Subject: [PATCH] CFRefCount analysis now properly calls "EmitWarnings" after analyzing a function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49488 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/CFRefCount.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 2a7886ba04..efd48218e4 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -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 -- 2.40.0