summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/defaultparams.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/defaultparams.cxx')
-rw-r--r--compilerplugins/clang/defaultparams.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/defaultparams.cxx b/compilerplugins/clang/defaultparams.cxx
index 173cc5e11604..76cbeed2abaa 100644
--- a/compilerplugins/clang/defaultparams.cxx
+++ b/compilerplugins/clang/defaultparams.cxx
@@ -61,8 +61,8 @@ bool DefaultParams::VisitCallExpr(const CallExpr * callExpr) {
report(
DiagnosticsEngine::Warning,
"not necessary to pass this argument, it defaults to the same value",
- callExpr->getSourceRange().getBegin())
- << callExpr->getSourceRange();
+ arg->getSourceRange().getBegin())
+ << arg->getSourceRange();
report(
DiagnosticsEngine::Warning,
"default method parameter declaration here",