From e1210bd06b7a46f5878e822ee93c06e073aaff33 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sat, 22 Sep 2007 12:31:22 +0000 Subject: [PATCH] tree-inline.c (remap_type_1): Correctly chain variants. * tree-inline.c (remap_type_1): Correctly chain variants. From-SVN: r128668 --- gcc/ChangeLog | 4 ++++ gcc/tree-inline.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6f3cc5f8e12..a96789122a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-09-22 Eric Botcazou + + * tree-inline.c (remap_type_1): Correctly chain variants. + 2007-09-22 Richard Guenther PR tree-optimization/33146 diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index d50b2c754ef..61a7f4e960a 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -322,7 +322,7 @@ remap_type_1 (tree type, copy_body_data *id) { t = remap_type (t, id); TYPE_MAIN_VARIANT (new) = t; - TYPE_NEXT_VARIANT (new) = TYPE_MAIN_VARIANT (t); + TYPE_NEXT_VARIANT (new) = TYPE_NEXT_VARIANT (t); TYPE_NEXT_VARIANT (t) = new; } else -- 2.30.2