Author: minz
Date: 2011-02-22 13:12:09 -0500 (Tue, 22 Feb 2011)
New Revision: 3489

Modified:
   trunk/osprey/ipa/main/optimize/ipo_inline.cxx
Log:
Fix bug712:

When the formal is a struct, the fixup method should be FM_REPLACE_ST, 
instead of FM_REPLACE_ACTUAL.

Code Review: Sun Chan



Modified: trunk/osprey/ipa/main/optimize/ipo_inline.cxx
===================================================================
--- trunk/osprey/ipa/main/optimize/ipo_inline.cxx       2011-02-22 18:00:27 UTC 
(rev 3488)
+++ trunk/osprey/ipa/main/optimize/ipo_inline.cxx       2011-02-22 18:12:09 UTC 
(rev 3489)
@@ -772,6 +772,9 @@
     if (ST_addr_saved (formal) || ST_addr_passed (formal))
        return FALSE;
 
+    if (TY_kind(ST_type(formal)) == KIND_STRUCT)
+    return FALSE;
+
     ST *st = Get_actual_st_if_passed (actual);
 
     if (st == NULL) {


------------------------------------------------------------------------------
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

Reply via email to