Moved assertion to right position
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Wed, 22 Mar 2006 15:38:59 +0000 (15:38 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Wed, 22 Mar 2006 15:38:59 +0000 (15:38 +0000)
ir/be/bechordal.c

index 721a176..7e0cff9 100644 (file)
@@ -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",