Author: zhuqing Date: 2011-02-25 04:58:56 -0500 (Fri, 25 Feb 2011) New Revision: 3492
Modified: trunk/osprey/be/com/data_layout.cxx Log: Fix bug703, add constraint at assertion "variable length struct's inito size should not be smaller than its' ST_size". Code Review: Jian-xin Modified: trunk/osprey/be/com/data_layout.cxx =================================================================== --- trunk/osprey/be/com/data_layout.cxx 2011-02-24 22:51:04 UTC (rev 3491) +++ trunk/osprey/be/com/data_layout.cxx 2011-02-25 09:58:56 UTC (rev 3492) @@ -652,7 +652,7 @@ INT64 size; INITO_IDX ino_idx; // if blk is variable length struct, its size should be inito size. - if (TY_kind(ST_type(blk)) == KIND_STRUCT && (ino_idx = Find_INITO_For_Symbol(blk)) != 0) + if (TY_kind(ST_type(blk)) == KIND_STRUCT && (ino_idx = Find_INITO_For_Symbol(blk)) != 0 && INITV_kind(INITO_val(ino_idx)) == INITVKIND_BLOCK) { size = Get_INITO_Size(ino_idx); Is_True(size >= ST_size(blk),("%s's inito size smaller than ST_size",ST_name(blk))); ------------------------------------------------------------------------------ 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