diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-30 13:48:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-30 13:48:45 +0200 |
commit | 2688a8829771289d576415a9b933a1c30197cf01 (patch) | |
tree | e10f9dae89c6240a79654115d57892bd2d8606e1 /compilerplugins | |
parent | 50b02731ca8494592a8d9a844530baca0e870e3c (diff) |
Remove leftover debug code
Change-Id: I874fc4d677abb2646bffb4331a220f3812443b66
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/redundantcast.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compilerplugins/clang/redundantcast.cxx b/compilerplugins/clang/redundantcast.cxx index 22e2ddf0094a..007a63873c9f 100644 --- a/compilerplugins/clang/redundantcast.cxx +++ b/compilerplugins/clang/redundantcast.cxx @@ -115,10 +115,6 @@ bool RedundantCast::VisitImplicitCastExpr(const ImplicitCastExpr * expr) { Expr const * e = expr->getSubExpr()->IgnoreParenImpCasts(); while (isa<CXXConstCastExpr>(e)) { auto cc = dyn_cast<CXXConstCastExpr>(e); -if(!cc->getSubExpr()->getType()->isPointerType()){ - report(DiagnosticsEngine::Warning,"TODO",cc->getExprLoc())<<expr->getSourceRange(); - return true; -} if (expr->getType()->getAs<PointerType>()->getPointeeType() .isAtLeastAsQualifiedAs( cc->getSubExpr()->getType() |