Author: zhuqing
Date: 2010-12-13 23:16:34 -0500 (Mon, 13 Dec 2010)
New Revision: 3434

Modified:
   trunk/osprey/wgen/wgen_expr.cxx
Log:
Fix problem caused by r3433.
replace Get_ST() with DECL_ST(), the first one will create a new st if it is 
null.

Reviewed by Jianxin.


Modified: trunk/osprey/wgen/wgen_expr.cxx
===================================================================
--- trunk/osprey/wgen/wgen_expr.cxx     2010-12-13 23:53:39 UTC (rev 3433)
+++ trunk/osprey/wgen/wgen_expr.cxx     2010-12-14 04:16:34 UTC (rev 3434)
@@ -2605,7 +2605,8 @@
   case GS_FUNCTION_DECL:
     {
       st = Get_ST (arg0);
-      ST *real_st = gs_decl_alias_target(arg0)? 
Get_ST(gs_decl_alias_target(arg0)):st;
+      gs_t alias_target = gs_decl_alias_target(arg0);
+      ST *real_st = (alias_target && DECL_ST(alias_target))? 
DECL_ST(alias_target):st;
       ty_idx = ST_type (st);
 #ifdef KEY
       // Arg0 is the virtual function table (vtable) for a class.  Initialize


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to