summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-29 09:17:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-29 09:17:47 +0200
commit0bd502af47b53bc4340df7874bd726361e3bbad9 (patch)
tree813d8fb60a4a5fe8bf4cbf316fb73621247647f3 /compilerplugins
parent0db89bcabfb4e207bed95b4a14685391311eaa3e (diff)
Clean up remaining C-style casts among void pointers
Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/cstylecast.cxx3
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();