OSDN Git Service

(contains_placeholder_p): Return 0 for CONSTRUCTOR.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Oct 1993 02:44:02 +0000 (02:44 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Oct 1993 02:44:02 +0000 (02:44 +0000)
(substitute_in_expr): Don't allow CONSTRUCTOR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5625 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/tree.c

index aafc757..d5d8371 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),