summaryrefslogtreecommitdiff
path: root/compilerplugins/clang
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r--compilerplugins/clang/redundantcast.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/redundantcast.cxx b/compilerplugins/clang/redundantcast.cxx
index b9f97dce0c6b..03e48f8fe261 100644
--- a/compilerplugins/clang/redundantcast.cxx
+++ b/compilerplugins/clang/redundantcast.cxx
@@ -645,7 +645,7 @@ bool RedundantCast::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr const * exp
report(
DiagnosticsEngine::Warning,
"redundant functional cast from %0 to %1", expr->getExprLoc())
- << t2 << t1 << expr->getSourceRange();
+ << sub->getType() << t1 << expr->getSourceRange();
return true;
}