Author: meiye Date: 2011-12-16 18:33:39 -0500 (Fri, 16 Dec 2011) New Revision: 3852
Modified: trunk/osprey/be/opt/opt_proactive.cxx Log: Fix fo Bug 934. Avoid seg fault when retrieving kid0 for expressions having no kid. Modified: trunk/osprey/be/opt/opt_proactive.cxx =================================================================== --- trunk/osprey/be/opt/opt_proactive.cxx 2011-12-14 21:11:19 UTC (rev 3851) +++ trunk/osprey/be/opt/opt_proactive.cxx 2011-12-16 23:33:39 UTC (rev 3852) @@ -3210,7 +3210,7 @@ if (!no_alias) { if (!do_query && (_action == DO_IFFLIP)) { - WN * wn_tmp = WN_kid0(expr1); + WN * wn_tmp = (WN_kid_count(expr1) > 0) ? WN_kid0(expr1) : NULL; if (wn_tmp) { BOOL result1 = FALSE; BOOL result2 = FALSE; ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel