X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestabs.c;h=9a0a6ebbf613d82b20261be2389d465c1e5787eb;hb=8d07d17eb2ade0b6b4aef0ebd68d6af3cc368b06;hp=e522a55dc964848282a1caaffc112132626b634f;hpb=cc979c0f1c58e51debc78af1c590ec3c35004c90;p=libfirm diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index e522a55dc..9a0a6ebbf 100644 --- a/ir/be/bestabs.c +++ b/ir/be/bestabs.c @@ -469,13 +469,13 @@ static void gen_method_type(wenv_t *env, ir_type *tp) { * type-walker: generate declaration for simple types, * put all other types on a wait queue */ -static void walk_type(type_or_ent *tore, void *ctx) +static void walk_type(type_or_ent tore, void *ctx) { wenv_t *env = ctx; ir_type *tp; - if (get_kind(tore) == k_type) { - tp = (ir_type *)tore; + if (is_type(tore.typ)) { + tp = tore.typ; /* ignore the unknown type */ if (tp == firm_unknown_type)