]> granicus.if.org Git - clang/commitdiff
Register internal checks with GRExprEngine when it is constructed, not manually in...
authorTed Kremenek <kremenek@apple.com>
Wed, 25 Nov 2009 21:45:48 +0000 (21:45 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 25 Nov 2009 21:45:48 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89883 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp
lib/Frontend/AnalysisConsumer.cpp

index 403126c471acd392d6b564a704adf8d34b0793c4..bfdbbdbad29cec0bfebc084f99ebf6b8fdd98806 100644 (file)
@@ -216,7 +216,11 @@ GRExprEngine::GRExprEngine(AnalysisManager &mgr)
     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();
index ede3d474c848510d8d36c0eb630e1c96c9a2017f..43e168fbd7ca23d585ea54fcd1c11f084fde827d 100644 (file)
@@ -329,8 +329,6 @@ static void ActionGRExprEngine(AnalysisConsumer &C, AnalysisManager& mgr, Decl *
   GRExprEngine Eng(mgr);
 
   Eng.setTransferFunctions(tf);
-  Eng.RegisterInternalChecks(); // FIXME: Internal checks should just
-                                // automatically register.
   
   if (C.Opts.EnableExperimentalInternalChecks)
     RegisterExperimentalInternalChecks(Eng);