From 72c5c5e28e261c647c82af0961ddf19989ab09a9 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 14 Aug 2006 12:18:23 +0000 Subject: [PATCH] fix for looping memphis --- ir/be/bespillslots.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c index e39319d0b..481c23fe6 100644 --- a/ir/be/bespillslots.c +++ b/ir/be/bespillslots.c @@ -161,7 +161,7 @@ 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); -- 2.20.1