]> granicus.if.org Git - clang/commitdiff
fix warning with gcc 4.1 (ptr to bool convertion)
authorNuno Lopes <nunoplopes@sapo.pt>
Tue, 20 May 2008 17:33:56 +0000 (17:33 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Tue, 20 May 2008 17:33:56 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51324 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicObjCFoundationChecks.cpp

index 8e8feec1d1a36a2bfb7be6a8bb05b915703f02ad..169438027f3872aed330352065c23ece093b7c45 100644 (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) {