summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-08-18 08:58:41 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-08-18 08:58:41 +0000
commit7864b9ea0c6c8fc3ac92f042b769e89d01c42f92 (patch)
tree6c212fa0f760bd3d29c58fc460b11e8abcae4c12 /clang/lib/Analysis/BugReporter.cpp
parent4c76dbc758e675995e2a92d5b5de23986a1d72df (diff)
downloadbcm5719-llvm-7864b9ea0c6c8fc3ac92f042b769e89d01c42f92.tar.gz
bcm5719-llvm-7864b9ea0c6c8fc3ac92f042b769e89d01c42f92.zip
Remove unused parameter BugReporter due to previous patch.
llvm-svn: 79328
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r--clang/lib/Analysis/BugReporter.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index 745e90c38e2..2e2665c1738 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -1231,7 +1231,7 @@ BugReport::getEndPath(BugReporterContext& BRC,
return NULL;
const SourceRange *Beg, *End;
- getRanges(BRC.getBugReporter(), Beg, End);
+ getRanges(Beg, End);
PathDiagnosticLocation L(S, BRC.getSourceManager());
// Only add the statement itself as a range if we didn't specify any
@@ -1245,9 +1245,7 @@ BugReport::getEndPath(BugReporterContext& BRC,
return P;
}
-void BugReport::getRanges(BugReporter& BR, const SourceRange*& beg,
- const SourceRange*& end) {
-
+void BugReport::getRanges(const SourceRange*& beg, const SourceRange*& end) {
if (const Expr* E = dyn_cast_or_null<Expr>(getStmt())) {
R = E->getSourceRange();
assert(R.isValid());
@@ -1657,7 +1655,7 @@ void BugReporter::FlushReport(BugReportEquivClass& EQ) {
// Emit a summary diagnostic to the regular Diagnostics engine.
const SourceRange *Beg = 0, *End = 0;
- R.getRanges(*this, Beg, End);
+ R.getRanges(Beg, End);
Diagnostic& Diag = getDiagnostic();
FullSourceLoc L(R.getLocation(), getSourceManager());
unsigned ErrorDiag = Diag.getCustomDiagID(Diagnostic::Warning,
OpenPOWER on IntegriCloud