From b8f1716c33faa4bd3f597bda9b00ebf583d2374f Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 18 Feb 2008 14:27:53 +0000 Subject: [PATCH] copy associated type instead of removing the lowered_flag [r17772] --- ir/tr/type.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ir/tr/type.c b/ir/tr/type.c index 7e77af820..b21ff2119 100644 --- a/ir/tr/type.c +++ b/ir/tr/type.c @@ -1227,7 +1227,8 @@ ir_type *clone_type_method(ir_type *tp, ident *prefix) { res = new_type(type_method, mode, name, db); - res->flags = tp->flags & ~tf_lowered_type; + res->flags = tp->flags; + res->assoc_type = tp->assoc_type; res->size = tp->size; res->attr.ma.n_params = n_params; res->attr.ma.params = xcalloc(n_params, sizeof(res->attr.ma.params[0])); -- 2.20.1