From: Matthias Braun Date: Tue, 23 Aug 2011 17:19:05 +0000 (+0200) Subject: fix the fix of the call ordering... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5de725ee2658320cb6d38df2be92c692831bbe1d;p=libfirm fix the fix of the call ordering... --- diff --git a/ir/be/beabihelper.c b/ir/be/beabihelper.c index 7d3efb512..15a870954 100644 --- a/ir/be/beabihelper.c +++ b/ir/be/beabihelper.c @@ -582,10 +582,10 @@ static int cmp_call_dependency(const void *c1, const void *c2) * We MUST NOT order c > a and b > c. */ h1 = get_irn_height(heights, n1); h2 = get_irn_height(heights, n2); - if (h1 < h2) return -1; - if (h1 > h2) return 1; + if (h1 < h2) return 1; + if (h1 > h2) return -1; /* Same height, so use a random (but stable) order */ - return get_irn_idx(n1) - get_irn_idx(n2); + return get_irn_idx(n2) - get_irn_idx(n1); } /**