Author: minz
Date: 2011-03-04 12:27:33 -0500 (Fri, 04 Mar 2011)
New Revision: 3505

Modified:
   trunk/osprey/wgen/wgen_decl.cxx
Log:
Refinement for fix of bug600

Skip GS_NOP_EXPR for processing GS_CONSTRUCTOR only in 
Traverse_Aggregate_Struct, because there are places where GS_NOP_EXPR 
is used in the pattern (e.g., line 2578 in wgen_decl.cxx).

Code Review: Jian-Xin Lai



Modified: trunk/osprey/wgen/wgen_decl.cxx
===================================================================
--- trunk/osprey/wgen/wgen_decl.cxx     2011-03-04 17:19:02 UTC (rev 3504)
+++ trunk/osprey/wgen/wgen_decl.cxx     2011-03-04 17:27:33 UTC (rev 3505)
@@ -3332,7 +3332,8 @@
     }
 
     gs_t element_value = gs_constructor_elts_value(init_list, idx);
-    if (gs_tree_code(element_value) == GS_NOP_EXPR)
+    if (gs_tree_code(element_value) == GS_NOP_EXPR &&
+        gs_tree_code(gs_tree_operand(element_value, 0)) == GS_CONSTRUCTOR)
         element_value = gs_tree_operand(element_value, 0);
 
     fld_ty = FLD_type(fld);


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to