This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New function: current_function_has_landing_pads


Roger Sayle <roger@eyesopen.com> writes:

| Secondly,
| 
| > +       if (! region || region->region_number != i)
| > + 	continue;
| > +       if (region->landing_pad)
| > + 	return true;
| 
| Is perhaps marginally clearer written as
| 
| 	if (region
| 	    && region->region_number == i
| 	    && region->landing_pad)
| 	  return true;

I vote for your version :-)

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]