summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compilerplugins/clang/defaultparams.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/compilerplugins/clang/defaultparams.cxx b/compilerplugins/clang/defaultparams.cxx
index 7a2facd8569a..e6f6921f0b89 100644
--- a/compilerplugins/clang/defaultparams.cxx
+++ b/compilerplugins/clang/defaultparams.cxx
@@ -40,13 +40,6 @@ bool DefaultParams::VisitCallExpr(CallExpr * callExpr) {
if (n == 0 || !functionDecl->getParamDecl(n - 1)->hasDefaultArg()) {
return true;
}
-if(callExpr->getNumArgs()>n){
- report(
- DiagnosticsEngine::Warning, "TODO %0 != %1", callExpr->getLocStart())
- << callExpr->getNumArgs() << n << callExpr->getSourceRange();
- callExpr->dump();
- return true;
-}
assert(callExpr->getNumArgs() <= n); // can be < in template code
for (unsigned i = callExpr->getNumArgs(); i != 0;) {
--i;