[cfe-commits] r51324 - /cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp
Nuno Lopes
nunoplopes at sapo.pt
Tue May 20 10:33:57 PDT 2008
Author: nlopes
Date: Tue May 20 12:33:56 2008
New Revision: 51324
URL: http://llvm.org/viewvc/llvm-project?rev=51324&view=rev
Log:
fix warning with gcc 4.1 (ptr to bool convertion)
Modified:
cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp
Modified: cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp?rev=51324&r1=51323&r2=51324&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp (original)
+++ cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.cpp Tue May 20 12:33:56 2008
@@ -160,7 +160,7 @@
ObjCInterfaceType* ReceiverType = GetReceiverType(ME);
if (!ReceiverType)
- return NULL;
+ return false;
const char* name = ReceiverType->getDecl()->getIdentifier()->getName();
@@ -177,7 +177,7 @@
if (isNSString(ReceiverType, name))
return AuditNSString(N, ME);
- return false;
+ return false;
}
static inline bool isNil(RVal X) {
More information about the cfe-commits
mailing list