fixed debug output of unary x87 nodes
[libfirm] / ir / be / bespillslots.c
index e39319d..ea0eee4 100644 (file)
@@ -161,10 +161,10 @@ static spill_t *collect_memphi(ss_env_t *env, ir_node *node) {
                        arg_spill = collect_memphi(env, arg);
                }
 
-               if(i == 0) {
+               if(res->cls == NULL) {
                        res->cls = arg_spill->cls;
                } else {
-                       assert(res->cls == arg_spill->cls);
+                       assert(arg_spill->cls == NULL || res->cls == arg_spill->cls);
                }
 
                // add an affinity edge