Commit 7eec3328 by Richard Kenner

(push_init_level): Don't blow up if construct_type is null (can happen

with missing brace).

From-SVN: r7964
parent 716b5162
...@@ -5155,8 +5155,8 @@ push_init_level (implicit) ...@@ -5155,8 +5155,8 @@ push_init_level (implicit)
/* Structure elements may require alignment. Do this now /* Structure elements may require alignment. Do this now
if necessary for the subaggregate. */ if necessary for the subaggregate. */
if (constructor_incremental && TREE_CODE (constructor_type) == RECORD_TYPE if (constructor_incremental && constructor_type != 0
&& constructor_fields) && TREE_CODE (constructor_type) == RECORD_TYPE && constructor_fields)
{ {
/* Advance to offset of this element. */ /* Advance to offset of this element. */
if (! tree_int_cst_equal (constructor_bit_index, if (! tree_int_cst_equal (constructor_bit_index,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment