tree-convert.c (convert): Use fold_build1 instead of fold (build1.
authorJames A. Morrison <phython@gcc.gnu.org>
Sun, 7 Aug 2005 16:36:33 +0000 (16:36 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Sun, 7 Aug 2005 16:36:33 +0000 (16:36 +0000)
2005-08-07  James A. Morrison  <phython@gcc.gnu.org>

        * tree-convert.c (convert): Use fold_build1 instead of
        fold (build1.

From-SVN: r102831

gcc/treelang/ChangeLog
gcc/treelang/tree-convert.c

index d02096110669c4da6b4117098a90715bb150d85c..46f8872b580ba6bc6fbfe7d0ba45e143159ff052 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
+
+       * tree-convert.c (convert): Use fold_build1 instead of
+       fold (build1.
+
 2005-08-06  James A. Morrison  <phython@gcc.gnu.org>
 
        PR treelang/23072
index 758b766b5b0646e82345733f93b157e5eb6f3c14..400c59c8df0d9828388f30b2835b80bf4a678358 100644 (file)
@@ -71,7 +71,7 @@ convert (tree type, tree expr)
     return expr;
 
   if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (TREE_TYPE (expr)))
-    return fold (build1 (NOP_EXPR, type, expr));
+    return fold_build1 (NOP_EXPR, type, expr);
   if (TREE_CODE (TREE_TYPE (expr)) == ERROR_MARK)
     return error_mark_node;
   if (TREE_CODE (TREE_TYPE (expr)) == VOID_TYPE)
@@ -89,9 +89,9 @@ convert (tree type, tree expr)
       /* If it returns a NOP_EXPR, we must fold it here to avoid
         infinite recursion between fold () and convert ().  */
       if (TREE_CODE (t) == NOP_EXPR)
-       return fold (build1 (NOP_EXPR, type, TREE_OPERAND (t, 0)));
+       return fold_build1 (NOP_EXPR, type, TREE_OPERAND (t, 0));
       else
-       return fold (build1 (NOP_EXPR, type, t));
+       return fold_build1 (NOP_EXPR, type, t);
     }
   if (code == POINTER_TYPE || code == REFERENCE_TYPE)
     return fold (convert_to_pointer (type, e));