From: Matthias Braun Date: Thu, 9 Aug 2012 16:34:30 +0000 (+0200) Subject: sparc: fix wrong delay slot test X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ad322f541f50efe5b36397f5e6c6336f5f02fc34;p=libfirm sparc: fix wrong delay slot test --- diff --git a/ir/be/sparc/sparc_emitter.c b/ir/be/sparc/sparc_emitter.c index 0719804af..4fcaeda27 100644 --- a/ir/be/sparc/sparc_emitter.c +++ b/ir/be/sparc/sparc_emitter.c @@ -402,7 +402,7 @@ static bool can_move_up_into_delayslot(const ir_node *node, const ir_node *to) /* register window cycling effects at Restore aren't correctly represented * in the graph yet so we need this exception here */ - if (is_sparc_Restore(to) || is_sparc_RestoreZero(to)) { + if (is_sparc_Restore(node) || is_sparc_RestoreZero(node)) { return false; } else if (is_sparc_Call(to)) { /* node must not overwrite any of the inputs of the call,