Author: yug
Date: 2011-12-08 03:54:27 -0500 (Thu, 08 Dec 2011)
New Revision: 3848
Modified:
trunk/osprey/wgen/wgen_decl.cxx
Log:
fix bug908. update field_id for the case of field is struct type.
Code Review: Sun Chan.
Modified: trunk/osprey/wgen/wgen_decl.cxx
===================================================================
--- trunk/osprey/wgen/wgen_decl.cxx 2011-12-07 11:09:48 UTC (rev 3847)
+++ trunk/osprey/wgen/wgen_decl.cxx 2011-12-08 08:54:27 UTC (rev 3848)
@@ -3443,6 +3443,16 @@
#endif
is_bit_field, field_id, fld, emitted_bytes);
// emitted_bytes updated by the call as reference parameter
+
+ // bug908 open64.net. update field_id for the case of field is struct
type.
+ if (TY_kind(fld_ty) == KIND_STRUCT) {
+ FLD_HANDLE field;
+ field = TY_fld(fld_ty); // get first field
+ while (!field.Is_Null()) {
+ field_id=Advance_Field_Id(field,field_id);
+ field=FLD_next(field);
+ }
+ }
}
}
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Open64-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open64-devel