From: Sebastian Hack Date: Wed, 22 Mar 2006 15:38:59 +0000 (+0000) Subject: Moved assertion to right position X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=832052b7251da68d6b1ea32cbd87046892a11d45;p=libfirm Moved assertion to right position --- diff --git a/ir/be/bechordal.c b/ir/be/bechordal.c index 721a1765e..7e0cff952 100644 --- a/ir/be/bechordal.c +++ b/ir/be/bechordal.c @@ -853,11 +853,10 @@ static void assign(ir_node *block, void *env_ptr) col = get_next_free_reg(alloc_env, colors); reg = arch_register_for_index(env->cls, col); assert(arch_get_irn_register(arch_env, irn) == NULL && "This node must not have been assigned a register yet"); + assert(!arch_register_type_is(reg, ignore) && "Must not assign ignore register"); } bitset_set(colors, col); - - assert(!arch_register_type_is(reg, ignore) && "Must not assign ignore register"); arch_set_irn_register(arch_env, irn, reg); DBG((dbg, LEVEL_1, "\tassigning register %s(%d) to %+F\n",