correct fix
authorMatthias Braun <matze@braunis.de>
Mon, 14 Aug 2006 14:52:48 +0000 (14:52 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 14 Aug 2006 14:52:48 +0000 (14:52 +0000)
ir/be/bespillslots.c

index 481c23f..ea0eee4 100644 (file)
@@ -164,7 +164,7 @@ static spill_t *collect_memphi(ss_env_t *env, ir_node *node) {
                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