int i, n_callees;
ir_graph *irg;
- if (get_irn_op(n) != op_Call) return;
+ if (! is_Call(n)) return;
irg = get_irn_irg(n);
n_callees = get_Call_n_callees(n);
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. */