tree.c (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 19 May 2008 22:24:38 +0000 (22:24 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 19 May 2008 22:24:38 +0000 (22:24 +0000)
From-SVN: r135591

gcc/ChangeLog
gcc/tree.c

index 603f5f6db661b9f2aa1abb3d116573da6cd37be9..b54350e503fd99c0b21becb3e61dfcdbb507dee7 100644 (file)
@@ -1,6 +1,7 @@
 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
 
        * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
+       (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
 
 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
 
index 18a9460d063b0c48f0057d8f525f1cb89fb37121..51eba929ff5255f8b645ec783ce39c1d38914d24 100644 (file)
@@ -2778,18 +2778,19 @@ substitute_placeholder_in_expr (tree exp, tree obj)
        {
          tree copy = NULL_TREE;
          int i;
-         int n = TREE_OPERAND_LENGTH (exp);
-         for (i = 1; i < n; i++)
+
+         for (i = 1; i < TREE_OPERAND_LENGTH (exp); i++)
            {
              tree op = TREE_OPERAND (exp, i);
-             tree newop = SUBSTITUTE_PLACEHOLDER_IN_EXPR (op, obj);
-             if (newop != op)
+             tree new_op = SUBSTITUTE_PLACEHOLDER_IN_EXPR (op, obj);
+             if (new_op != op)
                {
                  if (!copy)
                    copy = copy_node (exp);
-                 TREE_OPERAND (copy, i) = newop;
+                 TREE_OPERAND (copy, i) = new_op;
                }
            }
+
          if (copy)
            return fold (copy);
          else