Commit 394833a7 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

When sorting calls enforce a total order, because qsort() needs one.

Revoke PhD from: shack
Revoke diploma from: chriswue

parent da784a91
......@@ -1110,7 +1110,9 @@ static int cmp_call_dependency(const void *c1, const void *c2)
if (dependent_on(n2, n1))
return 1;
return 0;
/* The nodes have no depth order, but we need a total order because qsort()
* is not stable. */
return get_irn_idx(n1) - get_irn_idx(n2);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment