From efb5003f9578b770f42d9eb0b1048b1ad8d00e8f Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 25 Nov 2009 21:45:48 +0000 Subject: Register internal checks with GRExprEngine when it is constructed, not manually in AnalysisConsumer.cpp. llvm-svn: 89883 --- clang/lib/Analysis/GRExprEngine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clang/lib/Analysis/GRExprEngine.cpp') diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index 403126c471a..bfdbbdbad29 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -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(); -- cgit v1.2.3