- fix x87 simulator not killing float copies that only move registers around,
[libfirm] / ir / be / bespill.c
index a4d1892..ac99880 100644 (file)
@@ -432,6 +432,7 @@ static void spill_node(spill_env_t *env, spill_info_t *spillinfo) {
                return;
 
        to_spill = spillinfo->spilled_node;
+       assert(sched_is_scheduled(to_spill) && "Node to be spilled must be scheduled!");
        if (is_Phi(to_spill) && pset_find_ptr(env->mem_phis, spillinfo->spilled_node)) {
                spill_phi(env, spillinfo);
        } else {