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 <mli...@suse.cz>
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  <mli...@suse.cz>

	* 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

Reply via email to