Author: zhuqing Date: 2011-02-25 05:02:03 -0500 (Fri, 25 Feb 2011) New Revision: 3493
Modified: trunk/osprey/wgen/wgen_expr.cxx Log: Fix bug612. Remove GS_NOP_EXPR node in WGEN_Expand_Expr. Code Review: Gautam Chakrabarti Modified: trunk/osprey/wgen/wgen_expr.cxx =================================================================== --- trunk/osprey/wgen/wgen_expr.cxx 2011-02-25 09:58:56 UTC (rev 3492) +++ trunk/osprey/wgen/wgen_expr.cxx 2011-02-25 10:02:03 UTC (rev 3493) @@ -7698,6 +7698,9 @@ // WGEN_Expand_Ptr_To_Member_Func_Call_Expr to expand it. Otherwise, // call WGEN_Expand_Expr to do regular expansion. Bug 4737. gs_t exp_opnd1 = gs_tree_operand(exp, 1); + // Skip the NOP_EXPRs + while (gs_tree_code(exp_opnd1) == GS_NOP_EXPR) + exp_opnd1 = gs_tree_operand (exp_opnd1, 0); if (WGEN_Call_Returns_Ptr_To_Member_Func(exp_opnd1)) { TYPE_ID desc = TY_mtype(Get_TY(gs_tree_type(exp_opnd1))); wn1 = WGEN_Expand_Ptr_To_Member_Func_Call_Expr(exp_opnd1, 0, ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel