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
ir_node *spillnode = get_memory_edge(node);
spill_t *spill;
- assert(spill != NULL);
+ assert(spillnode != NULL);
if(is_Phi(spillnode)) {
spill = collect_memphi(env, spillnode);