diff options
Diffstat (limited to 'compilerplugins/clang/cstylecast.cxx')
-rw-r--r-- | compilerplugins/clang/cstylecast.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx index fcc1fc828862..47e8d17b8977 100644 --- a/compilerplugins/clang/cstylecast.cxx +++ b/compilerplugins/clang/cstylecast.cxx @@ -95,9 +95,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) { if (t1->isPointerType() && t2->isPointerType()) { t1 = t1->getAs<PointerType>()->getPointeeType(); t2 = t2->getAs<PointerType>()->getPointeeType(); - if (t2->isVoidType()) { - return true; - } } else if (t1->isLValueReferenceType() && t2->isLValueReferenceType()) { t1 = t1->getAs<LValueReferenceType>()->getPointeeType(); t2 = t2->getAs<LValueReferenceType>()->getPointeeType(); |