fix warning with gcc 4.1 (ptr to bool convertion)

llvm-svn: 51324
This commit is contained in:
Nuno Lopes 2008-05-20 17:33:56 +00:00
parent b8b9805cc2
commit 652eaab03c
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ bool BasicObjCFoundationChecks::Audit(ExplodedNode<ValueState>* 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<ValueState>* N) {
if (isNSString(ReceiverType, name))
return AuditNSString(N, ME);
return false;
return false;
}
static inline bool isNil(RVal X) {