From patchwork Wed Oct 19 10:10:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 684023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3szSPc5r2Mz9s3s for ; Wed, 19 Oct 2016 21:10:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=gUdYjNxM; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=du1AWFVfvIj/1RB6Vd+d208JvPRSKK8849Tr7zc75D8gPpMvkN agMVY6R+LlPN9D/js6wtNo/26BvWF2iViVHSnLsW2JYfd4ryF+KFs8kPzzxzjgH1 fY1cHvnKS8e2qggxsHgpwdueY9L9UqK1kMBNee2tvdzSJPcUOAV/klG8I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=7uakxMVX6CIc2khLXplZnHwAbRs=; b=gUdYjNxMKWLNy3xLBRtB kuY3U0Z/bjdAPhgsXJ7EsKaVh1MzpRRQ4Sa7CKlIDXjs+i6zfUHnuf1hBtQ3dbGR nlS5eIFkE2mwoEstx8GEBsElJcOUPU74etJ3bEHk/t7ysAI0p75tzjXc8CmcU7/D YdaW7Kq75yD3gL+8TSRu/JI= Received: (qmail 44225 invoked by alias); 19 Oct 2016 10:10:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 44215 invoked by uid 89); 19 Oct 2016 10:10:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1005, callee, FNDECL X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Oct 2016 10:10:23 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9E8F9AD70 for ; Wed, 19 Oct 2016 10:10:21 +0000 (UTC) To: GCC Patches From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH, OBVIOUS] Replace NULL with false as a return value Message-ID: <6f3a3dae-f16b-add8-37a3-6831e415857d@suse.cz> Date: Wed, 19 Oct 2016 12:10:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 X-IsSubscribed: yes Hello. Replacing NULL with false in a method with the boolean return type should be obvious. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Martin From 9071aa82e0203cf71fcc743f2e94aa7151986b6e Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 18 Oct 2016 17:59:33 +0200 Subject: [PATCH] Replace NULL with false as a return value gcc/ChangeLog: 2016-10-18 Martin Liska * cgraph.h (cgraph_edge::binds_to_current_def_p): Replace NULL with false as a return value. --- gcc/cgraph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cgraph.h b/gcc/cgraph.h index ecafe63..cc730d2 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -3042,7 +3042,7 @@ cgraph_edge::binds_to_current_def_p () if (callee) return callee->binds_to_current_def_p (caller); else - return NULL; + return false; } /* Return true if the TM_CLONE bit is set for a given FNDECL. */ -- 2.10.1