Author: ycwu
Date: 2011-05-25 03:23:58 -0400 (Wed, 25 May 2011)
New Revision: 3627

Modified:
   trunk/osprey/be/opt/opt_proactive.cxx
Log:
in IA64, _wn_to_val_num_map->Get_val((POINTER)
wn_cond) return a *void type, it must convert to a type INTPTR before
convert to IF_CMP_VAL(actually UINT32)

review by Lai jianxin


Modified: trunk/osprey/be/opt/opt_proactive.cxx
===================================================================
--- trunk/osprey/be/opt/opt_proactive.cxx       2011-05-25 00:28:57 UTC (rev 
3626)
+++ trunk/osprey/be/opt/opt_proactive.cxx       2011-05-25 07:23:58 UTC (rev 
3627)
@@ -10357,7 +10357,7 @@
   UINT32 key;
   STACK<WN *> * stk;
 
-  IF_CMP_VAL ret_val = (IF_CMP_VAL) _wn_to_val_num_map->Get_val((POINTER) 
wn_cond);  
+  IF_CMP_VAL ret_val = (IF_CMP_VAL)(INTPTR) 
_wn_to_val_num_map->Get_val((POINTER) wn_cond);  
   if (ret_val) {
     *val = ((*val) << MAX_IF_CMP_BITS) + ret_val;
     return;
@@ -10373,7 +10373,7 @@
       for (int i = 0; i < stk->Elements(); i++) {
        WN * wn_iter = stk->Top_nth(i);
        if ((wn_cond == wn_iter) || (WN_Simp_Compare_Trees(wn_cond, wn_iter) == 
0)) {
-         ret_val = (IF_CMP_VAL) _wn_to_val_num_map->Get_val((POINTER) wn_iter);
+         ret_val = (IF_CMP_VAL)(INTPTR) _wn_to_val_num_map->Get_val((POINTER) 
wn_iter);
          break;
        }
       }


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to