[cfe-commits] r89883 - in /cfe/trunk/lib: Analysis/GRExprEngine.cpp Frontend/AnalysisConsumer.cpp

Ted Kremenek kremenek at apple.com
Wed Nov 25 13:45:48 PST 2009


Author: kremenek
Date: Wed Nov 25 15:45:48 2009
New Revision: 89883

URL: http://llvm.org/viewvc/llvm-project?rev=89883&view=rev
Log:
Register internal checks with GRExprEngine when it is constructed, not manually in AnalysisConsumer.cpp.

Modified:
    cfe/trunk/lib/Analysis/GRExprEngine.cpp
    cfe/trunk/lib/Frontend/AnalysisConsumer.cpp

Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=89883&r1=89882&r2=89883&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Wed Nov 25 15:45:48 2009
@@ -216,7 +216,11 @@
     CurrentStmt(NULL),
     NSExceptionII(NULL), NSExceptionInstanceRaiseSelectors(NULL),
     RaiseSel(GetNullarySelector("raise", G.getContext())),
-    BR(mgr, *this) {}
+    BR(mgr, *this)
+{
+  // Register internal checks.
+  RegisterInternalChecks();
+}
 
 GRExprEngine::~GRExprEngine() {
   BR.FlushReports();

Modified: cfe/trunk/lib/Frontend/AnalysisConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/AnalysisConsumer.cpp?rev=89883&r1=89882&r2=89883&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/AnalysisConsumer.cpp (original)
+++ cfe/trunk/lib/Frontend/AnalysisConsumer.cpp Wed Nov 25 15:45:48 2009
@@ -329,8 +329,6 @@
   GRExprEngine Eng(mgr);
 
   Eng.setTransferFunctions(tf);
-  Eng.RegisterInternalChecks(); // FIXME: Internal checks should just
-                                // automatically register.
   
   if (C.Opts.EnableExperimentalInternalChecks)
     RegisterExperimentalInternalChecks(Eng);





More information about the cfe-commits mailing list