https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80821

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Index: gcc/genmatch.c
===================================================================
--- gcc/genmatch.c      (revision 248263)
+++ gcc/genmatch.c      (working copy)
@@ -3005,6 +3013,8 @@ dt_node::gen_kids_1 (FILE *f, int indent
       expr *e = as_a <expr *> (preds[i]->op);
       predicate_id *p = as_a <predicate_id *> (e->operation);
       preds[i]->get_name (kid_opname);
+      fprintf_indent (f, indent, "{\n");
+      indent += 2;
       fprintf_indent (f, indent, "tree %s_pops[%d];\n", kid_opname, p->nargs);
       fprintf_indent (f, indent, "if (%s_%s (%s, %s_pops%s))\n",
               gimple ? "gimple" : "tree",
@@ -3020,6 +3030,8 @@ dt_node::gen_kids_1 (FILE *f, int indent
        }
       preds[i]->gen_kids (f, indent + 4, gimple);
       fprintf (f, "}\n");
+      indent -= 2;
+      fprintf_indent (f, indent, "}\n");
     }

   for (unsigned i = 0; i < others.length (); ++i)

Reply via email to