projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new accessers
[libfirm]
/
ir
/
ana
/
irouts.c
diff --git
a/ir/ana/irouts.c
b/ir/ana/irouts.c
index
d97e1da
..
a0d61fc
100644
(file)
--- a/
ir/ana/irouts.c
+++ b/
ir/ana/irouts.c
@@
-51,7
+51,8
@@
static void reset_outs (ir_node *node, void *unused)
}
/* returns the number of successors of the node: */
}
/* returns the number of successors of the node: */
-INLINE int get_irn_n_outs (ir_node *node) {
+INLINE int get_irn_n_outs (ir_node *node) {
+ assert(node && node->kind == k_ir_node);
#ifdef DEBUG_libfirm
/* assert (node->out_valid); */
#endif /* defined DEBUG_libfirm */
#ifdef DEBUG_libfirm
/* assert (node->out_valid); */
#endif /* defined DEBUG_libfirm */
@@
-60,7
+61,6
@@
INLINE int get_irn_n_outs (ir_node *node) {
/* Access successor n */
INLINE ir_node *get_irn_out (ir_node *node, int pos) {
/* Access successor n */
INLINE ir_node *get_irn_out (ir_node *node, int pos) {
- assert(node);
assert(pos >= 0 && pos < get_irn_n_outs(node));
#ifdef DEBUG_libfirm
/* assert (node->out_valid); */
assert(pos >= 0 && pos < get_irn_n_outs(node));
#ifdef DEBUG_libfirm
/* assert (node->out_valid); */