X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fcallgraph.c;h=8e6891e0af2d0d976f860065a7903eacc3055832;hb=58e533a640ff427362877a3d2f1a5142c96391e1;hp=64336cf22a5bd4126964b41b01664edb80354b69;hpb=d08f58044fab65af3d668e5729cd3e03d07e04af;p=libfirm diff --git a/ir/ana/callgraph.c b/ir/ana/callgraph.c index 64336cf22..8e6891e0a 100644 --- a/ir/ana/callgraph.c +++ b/ir/ana/callgraph.c @@ -192,10 +192,12 @@ static void ana_Call(ir_node *n, void *env) { ir_graph *callee = get_entity_irg(callee_e); if (callee) { - ana_entry buf = { callee, NULL, 0}; + ana_entry buf = { NULL, NULL, 0}; ana_entry *found; int depth; + buf.irg = callee; + pset_insert((pset *)callee->callers, irg, HASH_PTR(irg)); found = pset_find((pset *)irg->callees, &buf, HASH_PTR(callee)); if (found) { /* add Call node to list, compute new nesting. */