Author: laijx
Date: 2011-02-11 23:59:49 -0500 (Fri, 11 Feb 2011)
New Revision: 3476

Modified:
   trunk/osprey/common/com/x8664/targ_sim.cxx
Log:
Fix bug 710.
Check if the field info is available to fix the segmentation fault.

CR by Sun.


Modified: trunk/osprey/common/com/x8664/targ_sim.cxx
===================================================================
--- trunk/osprey/common/com/x8664/targ_sim.cxx  2011-02-11 13:51:01 UTC (rev 
3475)
+++ trunk/osprey/common/com/x8664/targ_sim.cxx  2011-02-12 04:59:49 UTC (rev 
3476)
@@ -211,7 +211,7 @@
     classes[i] = X86_64_NO_CLASS;
   if (TY_kind(ty) == KIND_STRUCT ||
       TY_kind(ty) == KIND_ARRAY) {
-    if (TY_kind(ty) == KIND_STRUCT) {
+    if (TY_kind(ty) == KIND_STRUCT && Ty_Table[ty].Fld()) {
       FLD_ITER fld_iter = Make_fld_iter(TY_fld(ty));
       do {
         FLD_HANDLE fld(fld_iter);


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to