[cfe-commits] r79927 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Anders Carlsson
andersca at mac.com
Mon Aug 24 11:03:15 PDT 2009
Author: andersca
Date: Mon Aug 24 13:03:14 2009
New Revision: 79927
URL: http://llvm.org/viewvc/llvm-project?rev=79927&view=rev
Log:
Use the right cast kind when comparing null to member pointers.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=79927&r1=79926&r2=79927&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Aug 24 13:03:14 2009
@@ -4292,13 +4292,13 @@
if (RHSIsNull &&
(lType->isPointerType() ||
(!isRelational && lType->isMemberPointerType()))) {
- ImpCastExprToType(rex, lType);
+ ImpCastExprToType(rex, lType, CastExpr::CK_NullToMemberPointer);
return ResultTy;
}
if (LHSIsNull &&
(rType->isPointerType() ||
(!isRelational && rType->isMemberPointerType()))) {
- ImpCastExprToType(lex, rType);
+ ImpCastExprToType(lex, rType, CastExpr::CK_NullToMemberPointer);
return ResultTy;
}
More information about the cfe-commits
mailing list