From: Nuno Lopes Date: Tue, 20 May 2008 17:33:56 +0000 (+0000) Subject: fix warning with gcc 4.1 (ptr to bool convertion) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f74279447d4ad0a0c0f2e6e6740d5a0f4c242e0c;p=clang fix warning with gcc 4.1 (ptr to bool convertion) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51324 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/BasicObjCFoundationChecks.cpp b/lib/Analysis/BasicObjCFoundationChecks.cpp index 8e8feec1d1..169438027f 100644 --- a/lib/Analysis/BasicObjCFoundationChecks.cpp +++ b/lib/Analysis/BasicObjCFoundationChecks.cpp @@ -160,7 +160,7 @@ bool BasicObjCFoundationChecks::Audit(ExplodedNode* N) { ObjCInterfaceType* ReceiverType = GetReceiverType(ME); if (!ReceiverType) - return NULL; + return false; const char* name = ReceiverType->getDecl()->getIdentifier()->getName(); @@ -177,7 +177,7 @@ bool BasicObjCFoundationChecks::Audit(ExplodedNode* N) { if (isNSString(ReceiverType, name)) return AuditNSString(N, ME); - return false; + return false; } static inline bool isNil(RVal X) {