(push_init_level): Don't blow up if construct_type is null (can happen
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 24 Aug 1994 18:34:20 +0000 (14:34 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 24 Aug 1994 18:34:20 +0000 (14:34 -0400)
with missing brace).

From-SVN: r7964

gcc/c-typeck.c

index f5ff3a567137e648a5b91f8a705cebcdcc4c3b3c..aedc7e5d02a9b7cdaaacf96cb4960d86b76ee281 100644 (file)
@@ -5155,8 +5155,8 @@ push_init_level (implicit)
 
   /* Structure elements may require alignment.  Do this now
      if necessary for the subaggregate.  */
-  if (constructor_incremental && TREE_CODE (constructor_type) == RECORD_TYPE
-      && constructor_fields)
+  if (constructor_incremental && constructor_type != 0
+      && TREE_CODE (constructor_type) == RECORD_TYPE && constructor_fields)
     {
       /* Advance to offset of this element.  */
       if (! tree_int_cst_equal (constructor_bit_index,