* pt.c (unify): Use fold, not maybe_fold_nontype_arg.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Jan 2000 02:01:36 +0000 (02:01 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Jan 2000 02:01:36 +0000 (02:01 +0000)
--------------------------------------------------------------------

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

gcc/cp/ChangeLog
gcc/cp/pt.c

index 2834ebb..c497e6f 100644 (file)
@@ -1,3 +1,7 @@
+2000-01-26  Jason Merrill  <jason@casey.cygnus.com>
+
+       * pt.c (unify): Use fold, not maybe_fold_nontype_arg.
+
 Wed Jan 26 22:19:14 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * cp/optimize.c (calls_setjmp_r): Supply new argument
index b0b3289..64d3251 100644 (file)
@@ -8619,10 +8619,7 @@ unify (tparms, targs, parm, arg, strict)
          t1 = TREE_OPERAND (parm, 0);
          t2 = TREE_OPERAND (parm, 1);
 
-         /* Should this be a regular fold?  */
-         t = maybe_fold_nontype_arg (build (PLUS_EXPR,
-                                            integer_type_node,
-                                            arg, t2));
+         t = fold (build (PLUS_EXPR, integer_type_node, arg, t2));
 
          return unify (tparms, targs, t1, t, strict);
        }