give Bad nodes a mode
[libfirm] / ir / ana / callgraph.c
index 2c56420..6b5c6dd 100644 (file)
@@ -83,7 +83,7 @@ int is_irg_caller_backedge(const ir_graph *irg, size_t pos)
        return irg->caller_isbe != NULL ? rbitset_is_set(irg->caller_isbe, pos) : 0;
 }
 
-/** Search the caller in the list of all callers and set it's backedge property. */
+/** Search the caller in the list of all callers and set its backedge property. */
 static void set_irg_caller_backedge(ir_graph *irg, const ir_graph *caller)
 {
        size_t i, n_callers = get_irg_n_callers(irg);
@@ -121,7 +121,6 @@ static size_t reverse_pos(const ir_graph *callee, size_t pos_caller)
 {
        ir_graph *caller = get_irg_caller(callee, pos_caller);
        /* search the other relation for the corresponding edge. */
-       int pos_callee = -1;
        size_t i, n_callees = get_irg_n_callees(caller);
        for (i = 0; i < n_callees; ++i) {
                if (get_irg_callee(caller, i) == callee) {
@@ -251,7 +250,7 @@ static void ana_Call(ir_node *n, void *env)
                if (callee) {
                        cg_callee_entry buf;
                        cg_callee_entry *found;
-                       int depth;
+                       unsigned        depth;
 
                        buf.irg = callee;