(contains_placeholder_p): Return 0 for CONSTRUCTOR.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 6 Oct 1993 02:44:02 +0000 (22:44 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 6 Oct 1993 02:44:02 +0000 (22:44 -0400)
(substitute_in_expr): Don't allow CONSTRUCTOR.

From-SVN: r5625

gcc/tree.c

index aafc7576a16fbcac4e8af57244dc00e2c0104cfb..d5d8371e9fa50a2c087ad212222f27128dcc628d 100644 (file)
@@ -1911,6 +1911,7 @@ contains_placeholder_p (exp)
          return contains_placeholder_p (TREE_OPERAND (exp, 0));
        case 2:
          return (code != RTL_EXPR
+                 && code != CONSTRUCTOR
                  && ! (code == SAVE_EXPR && SAVE_EXPR_RTL (exp) != 0)
                  && code != WITH_RECORD_EXPR
                  && (contains_placeholder_p (TREE_OPERAND (exp, 0))
@@ -1963,7 +1964,7 @@ substitute_in_expr (exp, f, r)
                                                   f, r)));
 
        case 2:
-         if (code == RTL_EXPR)
+         if (code == RTL_EXPR || code == CONSTRUCTOR)
            abort ();
 
          return fold (build (code, TREE_TYPE (exp),