From: Michael Beck Date: Tue, 29 Jul 2008 11:55:18 +0000 (+0000) Subject: fixed new type_or_ent type handling X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fffd40dc823ed4492255ab0fa50c56f0c04b0a7a;p=libfirm fixed new type_or_ent type handling [r20756] --- diff --git a/ir/debug/debugger.c b/ir/debug/debugger.c index c5cc2fbf1..67a53845a 100644 --- a/ir/debug/debugger.c +++ b/ir/debug/debugger.c @@ -814,11 +814,11 @@ static ir_entity *find_entity_name(const char *name) { /** * Search methods for a name. */ -static void show_by_name(type_or_ent *tore, void *env) { +static void show_by_name(type_or_ent tore, void *env) { ident *id = (ident *)env; - if (is_entity(tore)) { - ir_entity *ent = (ir_entity *)tore; + if (is_entity(tore.ent)) { + ir_entity *ent = tore.ent; if (is_method_entity(ent)) { if (get_entity_ident(ent) == id) {