[cfe-commits] r167362 - /cfe/trunk/lib/Sema/SemaChecking.cpp
Dmitri Gribenko
gribozavr at gmail.com
Sat Nov 3 15:10:18 PDT 2012
Author: gribozavr
Date: Sat Nov 3 17:10:18 2012
New Revision: 167362
URL: http://llvm.org/viewvc/llvm-project?rev=167362&view=rev
Log:
Address review comments for r167358: explicitly check for CK_BitCast instead of
checking against a blacklist.
Modified:
cfe/trunk/lib/Sema/SemaChecking.cpp
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=167362&r1=167361&r2=167362&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Sat Nov 3 17:10:18 2012
@@ -6190,8 +6190,7 @@
// Skip implicit cast of pointer to `void *' (as a function argument).
if (const ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(ArgumentExpr))
if (ICE->getType()->isVoidPointerType() &&
- ICE->getCastKind() != CK_NullToPointer &&
- ICE->getCastKind() != CK_NullToMemberPointer)
+ ICE->getCastKind() == CK_BitCast)
ArgumentExpr = ICE->getSubExpr();
}
QualType ArgumentType = ArgumentExpr->getType();
More information about the cfe-commits
mailing list