On Thu, Jan 20, 2011 at 04:41:26PM -0500, Elnatan Reisner wrote:
> A '?:' expression, when occurring as a standalone statement, gets
> expanded into an 'if' statement, even if there are no side-effects
> in either branch. This patch fixes that by simply eliminating the
> statement altogether, or keeping the condition's side-effects if
> there were any.

Comitted in svn (r12133) in a generalized form (also applies to if
statements with no side-effects).  Thanks for the idea.

Best,
-- 
Gabriel

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to