From 832052b7251da68d6b1ea32cbd87046892a11d45 Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Wed, 22 Mar 2006 15:38:59 +0000 Subject: [PATCH] Moved assertion to right position --- ir/be/bechordal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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", -- 2.20.1