From b1d0118a1aa6498bcc707c60c882e74a7b439c5c Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 2 Jul 2008 21:24:01 +0000 Subject: Refactored some of the BugReporter interface so that data such as the ASTContext&, PathDiagnosticClient*, can be provided by an external source. Split BugReporter into BugReporter and GRBugReporter so checkers not based on GRExprEngine can still use the BugReporter mechanism. llvm-svn: 53048 --- clang/lib/Analysis/CFRefCount.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Analysis/CFRefCount.cpp') diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index b190ac20dfb..323181a302e 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -2202,7 +2202,7 @@ PathDiagnosticPiece* CFRefReport::VisitNode(ExplodedNode* N, // Add the range by scanning the children of the statement for any bindings // to Sym. - ValueStateManager& VSM = BR.getEngine().getStateManager(); + ValueStateManager& VSM = cast(BR).getStateManager(); for (Stmt::child_iterator I = S->child_begin(), E = S->child_end(); I!=E; ++I) if (Expr* Exp = dyn_cast_or_null(*I)) { @@ -2266,7 +2266,7 @@ PathDiagnosticPiece* CFRefReport::getEndPath(BugReporter& BR, // Tell the BugReporter to report cases when the tracked symbol is // assigned to different variables, etc. - BR.addNotableSymbol(Sym); + cast(BR).addNotableSymbol(Sym); if (!getBugType().isLeak()) return RangedBugReport::getEndPath(BR, EndN); -- cgit v1.2.3