summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-20 11:43:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-20 11:43:58 +0200
commit7ba3711606ec709217ade66d3281668ecadf2d50 (patch)
tree295c7012abf8e77140d5b5bd43cb2c078e1c24c9 /compilerplugins
parent7660e4dcecfb19ad8e9e21e5fe53637bd1b9dc6c (diff)
Remove accidentally committed debug code
Change-Id: Iba6b97d1a4a0988a3b0404bd14097f92a500d8ae
Diffstat (limited to 'compilerplugins')
-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;