]> granicus.if.org Git - clang/commitdiff
CFRefCount analysis now properly calls "EmitWarnings" after analyzing a function.
authorTed Kremenek <kremenek@apple.com>
Thu, 10 Apr 2008 16:21:09 +0000 (16:21 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 10 Apr 2008 16:21:09 +0000 (16:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49488 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index 2a7886ba046522aacb1cc694854e1d2f3549ea50..efd48218e436d1e1763c6b3da5067c9d43d7ff95 100644 (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