diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-02 21:24:01 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-02 21:24:01 +0000 |
commit | c095997b853270d8adb6fe55209a4dbc42803d16 (patch) | |
tree | 998b434ab07cafbb018bf3c248bcf2476e5738a8 /lib/Analysis/CFRefCount.cpp | |
parent | 8b23361a6a50be6dbd1056add570eb90598474b0 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index b190ac20df..323181a302 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -2202,7 +2202,7 @@ PathDiagnosticPiece* CFRefReport::VisitNode(ExplodedNode<ValueState>* N, // Add the range by scanning the children of the statement for any bindings // to Sym. - ValueStateManager& VSM = BR.getEngine().getStateManager(); + ValueStateManager& VSM = cast<GRBugReporter>(BR).getStateManager(); for (Stmt::child_iterator I = S->child_begin(), E = S->child_end(); I!=E; ++I) if (Expr* Exp = dyn_cast_or_null<Expr>(*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<GRBugReporter>(BR).addNotableSymbol(Sym); if (!getBugType().isLeak()) return RangedBugReport::getEndPath(BR, EndN); |