From: James A. Morrison Date: Sun, 7 Aug 2005 16:36:33 +0000 (+0000) Subject: tree-convert.c (convert): Use fold_build1 instead of fold (build1. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=febfc59a9523bc59d2cf4112bb394f2ee1da83ea;p=gcc.git tree-convert.c (convert): Use fold_build1 instead of fold (build1. 2005-08-07 James A. Morrison * tree-convert.c (convert): Use fold_build1 instead of fold (build1. From-SVN: r102831 --- diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index d0209611066..46f8872b580 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,3 +1,8 @@ +2005-08-07 James A. Morrison + + * tree-convert.c (convert): Use fold_build1 instead of + fold (build1. + 2005-08-06 James A. Morrison PR treelang/23072 diff --git a/gcc/treelang/tree-convert.c b/gcc/treelang/tree-convert.c index 758b766b5b0..400c59c8df0 100644 --- a/gcc/treelang/tree-convert.c +++ b/gcc/treelang/tree-convert.c @@ -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));