projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use is_$KIND(n) instead of get_irn_op(n) == op_$KIND.
[libfirm]
/
ir
/
be
/
becopyopt_t.h
diff --git
a/ir/be/becopyopt_t.h
b/ir/be/becopyopt_t.h
index
b5bf032
..
56f3da7
100644
(file)
--- a/
ir/be/becopyopt_t.h
+++ b/
ir/be/becopyopt_t.h
@@
-146,10
+146,10
@@
static inline affinity_node_t *get_affinity_info(const copy_opt_t *co, const ir_
ASSERT_GS_AVAIL(co);
find.irn = irn;
ASSERT_GS_AVAIL(co);
find.irn = irn;
- return
(affinity_node_t*)set_find(
co->nodes, &find, sizeof(find), hash_irn(irn));
+ return
set_find(affinity_node_t,
co->nodes, &find, sizeof(find), hash_irn(irn));
}
#define co_gs_foreach_aff_node(co, aff_node) foreach_set((co)->nodes, affinity_node_t, (aff_node))
}
#define co_gs_foreach_aff_node(co, aff_node) foreach_set((co)->nodes, affinity_node_t, (aff_node))
-#define co_gs_foreach_neighb(aff_node, neighb) for (neighb
= aff_node->neighbours; neighb != NULL
; neighb = neighb->next)
+#define co_gs_foreach_neighb(aff_node, neighb) for (neighb
_t *neighb = aff_node->neighbours; neighb
; neighb = neighb->next)
#endif /* FIRM_BE_BECOPYOPT_T_H */
#endif /* FIRM_BE_BECOPYOPT_T_H */